|
JBframe by OOIT.com | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.ooit.jbframe.JBDefaultAdapter
This class implements the JBAdapter interface and
adds some more functionality.
All get-function of the interface have also a set-function.
The setting of the tool bar actions creates a new JToolBar.
| Field Summary | |
protected javax.swing.Action |
discardAction
|
protected javax.swing.JComponent |
displayComponent
|
protected javax.swing.Action |
hideAction
|
protected javax.swing.Icon |
icon
|
protected javax.swing.JMenu[] |
menus
|
protected java.lang.String |
nodeLabel
|
protected JBAdapter |
parent
|
protected javax.swing.Action |
showAction
|
protected javax.swing.JComponent |
subNavigator
|
protected javax.swing.JToolBar |
toolbar
|
protected javax.swing.Action[] |
toolbarActions
|
| Constructor Summary | |
JBDefaultAdapter()
|
|
JBDefaultAdapter(JBAdapter parent,
java.lang.String nodeLabel,
javax.swing.JMenu[] menus,
javax.swing.Action[] toolbarActions,
javax.swing.JComponent displayComponent,
javax.swing.Action showAction,
javax.swing.Action hideAction,
javax.swing.Action discardAction)
|
|
| 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. |
void |
setDiscardAction(javax.swing.Action discardAction)
|
void |
setDisplayComponent(javax.swing.JComponent displayComponent)
|
void |
setHideAction(javax.swing.Action hideAction)
|
void |
setIcon(javax.swing.Icon icon)
|
void |
setLabel(java.lang.String nodeLabel)
|
void |
setMenus(javax.swing.JMenu[] menus)
|
void |
setParent(JBAdapter parent)
|
void |
setShowAction(javax.swing.Action showAction)
|
void |
setSubNavigator(javax.swing.JComponent subNavigator)
|
void |
setToolBar(javax.swing.JToolBar toolbar)
|
void |
setToolBarActions(javax.swing.Action[] toolbarActions)
Setting the toolbar action and creating the toolbar component. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected JBAdapter parent
protected java.lang.String nodeLabel
protected javax.swing.JMenu[] menus
protected javax.swing.JToolBar toolbar
protected javax.swing.Action[] toolbarActions
protected javax.swing.JComponent displayComponent
protected javax.swing.JComponent subNavigator
protected javax.swing.Action showAction
protected javax.swing.Action hideAction
protected javax.swing.Action discardAction
protected javax.swing.Icon icon
| Constructor Detail |
public JBDefaultAdapter()
public JBDefaultAdapter(JBAdapter parent,
java.lang.String nodeLabel,
javax.swing.JMenu[] menus,
javax.swing.Action[] toolbarActions,
javax.swing.JComponent displayComponent,
javax.swing.Action showAction,
javax.swing.Action hideAction,
javax.swing.Action discardAction)
| Method Detail |
public void setShowAction(javax.swing.Action showAction)
public javax.swing.Action getShowAction()
public void setHideAction(javax.swing.Action hideAction)
public javax.swing.Action getHideAction()
public void setDiscardAction(javax.swing.Action discardAction)
public javax.swing.Action getDiscardAction()
public void setToolBarActions(javax.swing.Action[] toolbarActions)
public javax.swing.Action[] getToolBarActions()
getToolbar().public void setToolBar(javax.swing.JToolBar toolbar)
public javax.swing.JToolBar getToolBar()
public void setMenus(javax.swing.JMenu[] menus)
public javax.swing.JMenu[] getMenus()
public void setDisplayComponent(javax.swing.JComponent displayComponent)
public javax.swing.JComponent getDisplayComponent()
JBAdaptor.
Usually this is a visual JAVA bean
which will appear in the working area.JBAdapter/bean.public void setLabel(java.lang.String nodeLabel)
public java.lang.String getLabel()
public void setIcon(javax.swing.Icon icon)
public javax.swing.Icon getIcon()
public void setParent(JBAdapter parent)
public JBAdapter getParent()
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.public void setSubNavigator(javax.swing.JComponent subNavigator)
|
JBframe by OOIT.com | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||