public class MainWndController extends Object
The controller class for the main window.
This class implements logic related to the GUI of the main window of the JGUIraffe tutorial application.
| Constructor and Description |
|---|
MainWndController(Application app,
TreeHandler treeHandler,
TableHandler tabHandler,
WidgetHandler widgetTab)
Creates a new instance of
MainWndController and initializes it
with references to its dependencies. |
| Modifier and Type | Method and Description |
|---|---|
Application |
getApplication()
Returns the central
Application object. |
Object |
getIconDirectory()
Returns the icon for directories.
|
Object |
getIconFile()
Returns the icon for files.
|
List<File> |
getSelectedFiles()
Returns a list with the
File objects that are selected in the
current directory. |
TableHandler |
getTable()
Returns the handler for the table component.
|
TreeHandler |
getTree()
Returns the handler for the tree component.
|
org.apache.commons.configuration.HierarchicalConfiguration |
getTreeModel()
Returns the configuration acting a model for the tree component.
|
void |
selectSubDirectory(File dir)
Selects the specified directory in the tree view.
|
void |
setIconDirectory(Object iconDirectory)
Sets the icon for directories.
|
void |
setIconFile(Object iconFile)
Sets the icon for files.
|
public MainWndController(Application app, TreeHandler treeHandler, TableHandler tabHandler, WidgetHandler widgetTab)
MainWndController and initializes it
with references to its dependencies.app - the main Application objecttreeHandler - the handler for the tree componenttabHandler - the handler for the table componentpublic Application getApplication()
Application object.Applicationpublic TreeHandler getTree()
public TableHandler getTable()
public org.apache.commons.configuration.HierarchicalConfiguration getTreeModel()
public Object getIconDirectory()
public void setIconDirectory(Object iconDirectory)
iconDirectory - the icon for directoriespublic Object getIconFile()
public void setIconFile(Object iconFile)
iconFile - the icon for filespublic List<File> getSelectedFiles()
File objects that are selected in the
current directory. The list can contain plain files and directories as
well.File objectspublic void selectSubDirectory(File dir)
dir - the directory to be selectedCopyright © 2016 The JGUIraffe Team. All rights reserved.