|
JBframe by OOIT.com | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
The JBAdapter class is the translater between a JAVA bean and
a JBFrame implementation.
The JBAdapter provides the following hooks for the JBFrame:
JBFrame
Callback functions : Action Objects
The follwing table shows the action objects which are provided by the adapter for calling back for show, hide and discard events.
| Action access function | Description, when the action is called back. |
| getShowAction() | Just before the component will be shown. |
| getHideAction() | Just before the visible component will be hidden. |
| getDiscardAction() | Just before the visible component and the
adapter are discarded from the JBFrame. |
| getToolBarActions() | After the corresponding buttons in the toolbar have been pressed. |
Access to properties needed for displaying the tree
The follwing table shows the access functions and the description when the callback method of the action is called.
| Property access function | Description |
getLabel() |
Label which is used as display text in the navigation. |
getIcon() |
Icon which is used in the navigation. |
getParent() |
Getting the parent adapter for creating a subnode. |
Accessing the visible component from the adapter is done by a single function.
| Visible component access | Description |
getDisplayComponent() |
Returns a subclass of JComponent which represents the display part of the JAVA bean. |
| Method Summary | |
javax.swing.Action |
getDiscardAction()
Action of which the callback method is called just before the display component is discarded. |
javax.swing.JComponent |
getDisplayComponent()
The dipalay part of the JBAdaptor.
|
javax.swing.Action |
getHideAction()
Action of which the callback method is called just before the display component is hidden. |
javax.swing.Icon |
getIcon()
Icon for display in the navigation node. |
java.lang.String |
getLabel()
Label for display in the node. |
javax.swing.JMenu[] |
getMenus()
Getting the menus of the adapter. |
JBAdapter |
getParent()
The parent of this adapter. |
javax.swing.Action |
getShowAction()
Action of which the callback method is called when just before the display component is shown. |
javax.swing.JComponent |
getSubNavigator()
A adapter specific navigational component. |
javax.swing.JToolBar |
getToolBar()
Getting the toolbar of the adapter. |
javax.swing.Action[] |
getToolBarActions()
Getting the actions for a toolbar. |
| Method Detail |
public javax.swing.Action getShowAction()
public javax.swing.Action getHideAction()
public javax.swing.Action getDiscardAction()
public javax.swing.Action[] getToolBarActions()
getToolbar().public javax.swing.JToolBar getToolBar()
public javax.swing.JMenu[] getMenus()
public java.lang.String getLabel()
public javax.swing.Icon getIcon()
public JBAdapter getParent()
public javax.swing.JComponent getDisplayComponent()
JBAdaptor.
Usually this is a visual JAVA bean
which will appear in the working area.JBAdapter/bean.public javax.swing.JComponent getSubNavigator()
JBFrame
implementation could display this navigator below the general navigation tree
or as a pop-up on right button click on the the navigator node.
|
JBframe by OOIT.com | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||