QJCC homepage

biz.chitec.quarterback.swing
Class DynamicMenuBar.ActionMenuElement

java.lang.Object
  extended bybiz.chitec.quarterback.swing.DynamicMenuBar.MenuElement
      extended bybiz.chitec.quarterback.swing.DynamicMenuBar.ActionMenuElement
Enclosing class:
DynamicMenuBar

protected class DynamicMenuBar.ActionMenuElement
extends DynamicMenuBar.MenuElement

Simple menu element which is driven by an Action


Field Summary
private  javax.swing.Action action
           
private  LogicExpr le
           
private  java.awt.Component[] myretval
           
 
Constructor Summary
DynamicMenuBar.ActionMenuElement(java.lang.String namekey, javax.swing.Action actionx)
          Create an unconstrained action menu element.
DynamicMenuBar.ActionMenuElement(java.lang.String namekey, LogicExpr lex, javax.swing.Action actionx)
          Create an action menu element.
 
Method Summary
 void checkEnabled()
          Enforce an enabled check for all components generated by this menu element.
 java.awt.Component[] getElements()
          Return all components generated by this menu element.
 
Methods inherited from class biz.chitec.quarterback.swing.DynamicMenuBar.MenuElement
add, add
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

le

private LogicExpr le

myretval

private java.awt.Component[] myretval

action

private javax.swing.Action action
Constructor Detail

DynamicMenuBar.ActionMenuElement

public DynamicMenuBar.ActionMenuElement(java.lang.String namekey,
                                        LogicExpr lex,
                                        javax.swing.Action actionx)
Create an action menu element.


DynamicMenuBar.ActionMenuElement

public DynamicMenuBar.ActionMenuElement(java.lang.String namekey,
                                        javax.swing.Action actionx)
Create an unconstrained action menu element.

Method Detail

getElements

public java.awt.Component[] getElements()
Description copied from class: DynamicMenuBar.MenuElement
Return all components generated by this menu element. One element can create multiple components.

Specified by:
getElements in class DynamicMenuBar.MenuElement
Returns:
Array of components or null if no components have been created

checkEnabled

public void checkEnabled()
Description copied from class: DynamicMenuBar.MenuElement
Enforce an enabled check for all components generated by this menu element. The element can go through all its created components and set or reset their enabled state.

Overrides:
checkEnabled in class DynamicMenuBar.MenuElement

QJCC homepage