org.colos.ejs.library.control.swing
Class ControlContainer

java.lang.Object
  extended by org.colos.ejs.library.control.ControlElement
      extended by org.colos.ejs.library.control.swing.ControlSwingElement
          extended by org.colos.ejs.library.control.swing.ControlContainer
Direct Known Subclasses:
ControlMenu, ControlMenuBar, ControlPanel, ControlRootPane, ControlSplitPanel, ControlTabbedPanel, ControlToolBar, ControlWindow

public abstract class ControlContainer
extends ControlSwingElement

A configurable Container


Field Summary
 
Fields inherited from class org.colos.ejs.library.control.swing.ControlSwingElement
ACTION_IMMEDIATE, ACTION_OFF, ACTION_ON, ACTION_PRESS, AXIS_DRAGGED_ACTION, BACKGROUND, ENABLED, FONT, FOREGROUND, KEY_ACTION, MENU_NAME, MOUSE_ENTERED_ACTION, MOUSE_EXITED_ACTION, MOUSE_MOVED_ACTION, PARENT, POSITION, PRINT_TARGET, SIZE, SWING_ELEMENT_NAME, TOOLTIP, VISIBLE
 
Fields inherited from class org.colos.ejs.library.control.ControlElement
ACTION, ACTION_ERROR, ACTION_SUCCESS, METHOD_FOR_VARIABLE, METHOD_TRIGGER, NAME, VARIABLE_CHANGED
 
Constructor Summary
ControlContainer()
           
 
Method Summary
 boolean acceptsChild(ControlElement _child)
          Whether this element can have children of the given type
 void add(ControlElement _child)
          adds a child control
 void adjustSize()
           
 java.util.Vector<ControlElement> getChildren()
          Returns the vector of children
 java.awt.Container getContainer()
           
 void informRadioGroup(RadioButtonInterface _source, boolean _state)
           
 void remove(ControlElement _child)
          removes a child control
 ControlElement setProperty(java.lang.String _property, java.lang.String _value, boolean _store)
          Same as setProperty (String, String) but only stores the value if _storeIt is true.
 
Methods inherited from class org.colos.ejs.library.control.swing.ControlSwingElement
changeVisual, getComponent, getControlWindow, getDefaultValueString, getMenuNameEntry, getPropertyInfo, getPropertyList, getTopWindow, getValue, getVisual, parseConstant, setControlWindow, setDefaultValue, setValue, toStringValue
 
Methods inherited from class org.colos.ejs.library.control.ControlElement
addAction, addAction, addAction, addMenuEntries, destroy, editorIsReading, flush, getGroup, getObject, getObject, getObjectClassname, getProperty, getPropertyCommonName, getSimulation, getValue, implementsProperty, indexOf, initialize, invokeActions, invokeActions, isActive, onExit, propertyIndex, propertyIsTypeOf, propertyType, removeAction, removeAction, replaceVisual, reset, setActive, setFieldListValue, setFieldListValues, setGroup, setProperties, setProperty, setPropertyEditor, setVariableEditor, toString, variableChanged, variableChangedDoNotUpdate, variableExtraChanged, variablePropertiesClear, variablesChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControlContainer

public ControlContainer()
Method Detail

getContainer

public java.awt.Container getContainer()

acceptsChild

public boolean acceptsChild(ControlElement _child)
Description copied from class: ControlElement
Whether this element can have children of the given type

Overrides:
acceptsChild in class ControlElement
Parameters:
_child - ControlElement
Returns:
boolean

add

public void add(ControlElement _child)
adds a child control

Parameters:
_child - the child control

adjustSize

public void adjustSize()

getChildren

public java.util.Vector<ControlElement> getChildren()
Returns the vector of children


remove

public void remove(ControlElement _child)
removes a child control

Parameters:
_child - the child control

informRadioGroup

public void informRadioGroup(RadioButtonInterface _source,
                             boolean _state)

setProperty

public ControlElement setProperty(java.lang.String _property,
                                  java.lang.String _value,
                                  boolean _store)
Description copied from class: ControlElement
Same as setProperty (String, String) but only stores the value if _storeIt is true. This is to be used by propagateProperty() of ControlContainer only.

Overrides:
setProperty in class ControlElement
Parameters:
_property - String
_value - String
_store - boolean
Returns:
ControlElement