ist.palcom.simulated.handheld.browser.ui
Class UIComponent

java.lang.Object
  extended by ist.palcom.simulated.handheld.browser.ui.UIComponent
Direct Known Subclasses:
InParamView, OutParamView, UIContainer

public abstract class UIComponent
extends java.lang.Object


Field Summary
protected  UIContainer parent
           
 
Constructor Summary
UIComponent(CommandEventListener cel)
           
 
Method Summary
static void changeFontSizeOfComponent(javax.swing.JComponent component, float factor)
          Helper method.
protected  UIComponent createComponentForItem(ControlItem item)
          Factory method for creating UIComponents for ControlItems.
 CommandEventListener getCommandEventListener()
           
abstract  javax.swing.JComponent getSwingComponent()
          Returns the Swing component for this UIComponent.
abstract  void update()
          Update the UIComponent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected UIContainer parent
Constructor Detail

UIComponent

public UIComponent(CommandEventListener cel)
Parameters:
cel - The listener that will receive invoked commands.
Method Detail

update

public abstract void update()
Update the UIComponent. Redraw all rendered components with the right text etc.


getSwingComponent

public abstract javax.swing.JComponent getSwingComponent()
Returns the Swing component for this UIComponent.


getCommandEventListener

public CommandEventListener getCommandEventListener()
Returns:
The listener that will receive invoked commands.

createComponentForItem

protected UIComponent createComponentForItem(ControlItem item)
Factory method for creating UIComponents for ControlItems. UIs (which are the outer-most components) are not created by this method, but by a direct call to the constructor.


changeFontSizeOfComponent

public static void changeFontSizeOfComponent(javax.swing.JComponent component,
                                             float factor)
Helper method.