public class MainPc extends Object implements Pc, SwingXMLBuilder.Backlink
| Constructor and Description |
|---|
MainPc() |
| Modifier and Type | Method and Description |
|---|---|
void |
autoFilter()
Callback from the auto-filter checkbox.
|
void |
filter()
Callback of the text field on each caret movement.
|
void |
init(Dc pDc,
Map<String,? super Object> pArgs)
This method connects the widgets to models and uses states/state adapters
and ValueModel adapters to minimize the event handling code.
|
void |
openFile()
Callback for opening a file.
|
void |
openTree()
Callback for opening a tree.
|
void |
plafChanged(ChangeEvent e)
ValueModel callback if the user changed the wanted look-and-feel.
|
void |
quit()
Callback for quitting the application.
|
void |
search()
Callback from our text field or the search button.
|
void |
setFirstRowIsHeader(ChangeEvent e)
ValueModel callback if the first-row-is-header value changed.
|
void |
setModel(FilteredTableModel pModel)
Called by our dialog component to publish new table data.
|
void |
setSwingXMLBuilder(SwingXMLBuilder pBuilder)
When a SwingXMLBuilder creates an object of ourselves, we want to
know that builder.
|
void |
showLoadError(Response<?> pResponse)
Callback method from our dialog component to show an error.
|
void |
updateStatusLabel()
Small helper method that updates the status label.
|
public void setSwingXMLBuilder(SwingXMLBuilder pBuilder)
setSwingXMLBuilder in interface SwingXMLBuilder.BacklinkpBuilder - the builder that created this objectpublic void init(Dc pDc, Map<String,? super Object> pArgs)
public void quit()
public void openFile()
public void openTree()
public void setModel(FilteredTableModel pModel)
pModel - the new table modelpublic void filter()
public void search()
public void updateStatusLabel()
public void autoFilter()
public void showLoadError(Response<?> pResponse)
pResponse - the response containing the errorpublic void setFirstRowIsHeader(ChangeEvent e)
e - event containing the ValueModelpublic void plafChanged(ChangeEvent e)
e - not usedCopyright © 2013–2024 Jürgen Zeller (privat). All rights reserved.