QJCC homepage

biz.chitec.quarterback.swing
Class DynamicMenuBar.GroupMenuElement

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

protected class DynamicMenuBar.GroupMenuElement
extends DynamicMenuBar.MenuElement

Group multiple elements behind a common LogicExpr. Allows an "if-then-else"-like constuction.


Field Summary
private  boolean elsepath
           
private  LogicExpr le
           
private  DynamicMenuBar.MenuElement[] meelse
           
private  DynamicMenuBar.MenuElement[] methen
           
 
Constructor Summary
DynamicMenuBar.GroupMenuElement(DynamicMenuBar.MenuElement[] methenx)
           
DynamicMenuBar.GroupMenuElement(LogicExpr lex, DynamicMenuBar.MenuElement[] methenx)
           
DynamicMenuBar.GroupMenuElement(LogicExpr lex, DynamicMenuBar.MenuElement[] methenx, DynamicMenuBar.MenuElement[] meelsex)
           
 
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

methen

private DynamicMenuBar.MenuElement[] methen

meelse

private DynamicMenuBar.MenuElement[] meelse

le

private LogicExpr le

elsepath

private boolean elsepath
Constructor Detail

DynamicMenuBar.GroupMenuElement

public DynamicMenuBar.GroupMenuElement(LogicExpr lex,
                                       DynamicMenuBar.MenuElement[] methenx,
                                       DynamicMenuBar.MenuElement[] meelsex)

DynamicMenuBar.GroupMenuElement

public DynamicMenuBar.GroupMenuElement(LogicExpr lex,
                                       DynamicMenuBar.MenuElement[] methenx)

DynamicMenuBar.GroupMenuElement

public DynamicMenuBar.GroupMenuElement(DynamicMenuBar.MenuElement[] methenx)
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