G4P GUI Builder  4.4
Visual GUI designer for the G4P v4.3.1 library
 All Classes Namespaces Functions Variables
g4p.tool.gui.treeview.CtrlSketchView Class Reference
Inheritance diagram for g4p.tool.gui.treeview.CtrlSketchView:

Classes

class  DataCellRenderer
 

Public Member Functions

 CtrlSketchView ()
 
void setViewLinks (CtrlTabView tabs, CtrlPropView props)
 
void setSelectedComponent (DBase comp)
 
DBase getWindowFor (DBase comp)
 
DBase getGuiContainerFor (DBase comp)
 
DBase getOptionGroupFor (DBase comp)
 
Point getPosition (DBase comp, Point loc)
 
Dimension getSketchSizeFromDesigner ()
 
String getSketchRendererFromDesigner ()
 
void addComponent (DBase comp)
 
void removeComponent ()
 
DefaultMutableTreeNode getRoot ()
 
void generateDeclarations (ArrayList< String > lines)
 
void generateEvtMethods (ArrayList< String > lines)
 
void generateCreator (ArrayList< String > lines)
 
void saveModel (File file)
 
DefaultTreeModel loadModel (File file)
 

Private Member Functions

void initialise ()
 
void undoComponent (DBase comp)
 

Private Attributes

CtrlTabView tabs
 
CtrlPropView props
 

Constructor & Destructor Documentation

g4p.tool.gui.treeview.CtrlSketchView.CtrlSketchView ( )

Ctor creates an empty tree;

Member Function Documentation

void g4p.tool.gui.treeview.CtrlSketchView.addComponent ( DBase  comp)

Certain rules must apply 1) All window components are added to the application node (root) 2) In general all controls are added to a window 3) Option buttons must be added to an option group component

void g4p.tool.gui.treeview.CtrlSketchView.initialise ( )
private

Set the characteristics for the tree

DefaultTreeModel g4p.tool.gui.treeview.CtrlSketchView.loadModel ( File  file)

Load the data model from file and if successful attach it to this tree and if a node was selected when saved ractivate it

Parameters
file
void g4p.tool.gui.treeview.CtrlSketchView.removeComponent ( )

Removes the currently selected component from the GUI.

void g4p.tool.gui.treeview.CtrlSketchView.saveModel ( File  file)

Save the data model to disk

Parameters
file
void g4p.tool.gui.treeview.CtrlSketchView.undoComponent ( DBase  comp)
private

Release component id, name and event name

Parameters
comp

The documentation for this class was generated from the following file: