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(net.sf.jguiraffe.gui.app.Application app,
net.sf.jguiraffe.gui.builder.components.model.TreeHandler treeHandler,
net.sf.jguiraffe.gui.builder.components.model.TableHandler tabHandler,
net.sf.jguiraffe.gui.builder.components.WidgetHandler widgetTab)
Creates a new instance of
MainWndController and initializes it
with references to its dependencies. |
| Modifier and Type | Method and Description |
|---|---|
net.sf.jguiraffe.gui.app.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. |
net.sf.jguiraffe.gui.builder.components.model.TableHandler |
getTable()
Returns the handler for the table component.
|
net.sf.jguiraffe.gui.builder.components.model.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(net.sf.jguiraffe.gui.app.Application app,
net.sf.jguiraffe.gui.builder.components.model.TreeHandler treeHandler,
net.sf.jguiraffe.gui.builder.components.model.TableHandler tabHandler,
net.sf.jguiraffe.gui.builder.components.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 net.sf.jguiraffe.gui.app.Application getApplication()
Application object.Applicationpublic net.sf.jguiraffe.gui.builder.components.model.TreeHandler getTree()
public net.sf.jguiraffe.gui.builder.components.model.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.