layout

com.canoo.ulc.community.layout.application
Class ULCAbstractLayoutPane

java.lang.Object
  |
  +--com.ulcjava.base.application.ULCProxy
        |
        +--com.ulcjava.base.application.ULCComponent
              |
              +--com.canoo.ulc.community.layout.application.ULCAbstractLayoutPane
All Implemented Interfaces:
com.ulcjava.base.shared.internal.ICallable, com.ulcjava.base.server.IProxy, Serializable
Direct Known Subclasses:
ULCBorderLayoutPane, ULCFlowLayoutPane, ULCGridBagLayoutPane, ULCGridLayoutPane, ULCNullLayoutPane, ULCRelativeLayoutPane, ULCTableLayoutPane

public abstract class ULCAbstractLayoutPane
extends ULCComponent

This abstract class serves as the base class for implementation of new pane layout components. It provides the handling of the contained components that are added to and removed from the pane layout component.

Author:
Etienne Studer
See Also:
Serialized Form

Fields inherited from class com.ulcjava.base.application.ULCComponent
fFont, fLabel, fVisible, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, z
 
Fields inherited from class com.ulcjava.base.application.ULCProxy
fIsUploaded, i
 
Constructor Summary
ULCAbstractLayoutPane()
           
 
Method Summary
 void add(ULCComponent component)
          Adds the specified component to the pane.
 ULCComponent getComponent(int position)
          Returns the component at the given position.
protected  Object getComponentConstraints(ULCComponent component)
           
 int getComponentCount()
          Returns the number of contained components.
 ULCComponent[] getComponents()
          Returns all contained components.
protected  String getPropertyPrefix()
          Returns the client-side default UI properties prefix.
 int indexOf(ULCComponent component)
          Returns the position of the given component.
protected  com.ulcjava.base.shared.internal.Anything internalConvert(ULCComponent component, Object constraints)
           
protected  com.ulcjava.base.shared.internal.Anything internalConvertFromComponents(List components, Map componentTable)
           
protected abstract  com.ulcjava.base.shared.internal.Anything internalConvertFromConstraints(Object constraints)
           
 void remove(ULCComponent component)
          Removes the specified component from the pane.
protected  void saveState(com.ulcjava.base.shared.internal.Anything a)
           
protected  void setComponentConstraints(ULCComponent component, Object constraints)
           
 
Methods inherited from class com.ulcjava.base.application.ULCComponent
addFocusListener, addKeyListener, getActionForKeyStroke, getBackground, getClientProperty, getConditionForKeyStroke, getCursor, getEnabler, getFont, getForeground, getHelpTarget, getHelpUrlString, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupMenu, getPreferredSize, getRegisteredKeyStrokes, getToolTipText, handleEvent, handleRequest, internalSetLabel, isEnabled, isVisible, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeFocusListener, removeKeyListener, repaint, requestFocus, resetKeyboardActions, revalidate, setBackground, setCursor, setEnabled, setEnabler, setFont, setForeground, setHelpDocument, setHelpDocument, setHelpTarget, setHelpUrlString, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPopupMenu, setPreferredSize, setToolTipText, setVisible, unregisterKeyboardAction
 
Methods inherited from class com.ulcjava.base.application.ULCProxy
distributeToListeners, equals, getId, getRef, internalAddChild, internalAddListener, internalConvertFromColor, internalConvertFromDimension, internalConvertFromFont, internalConvertFromInsets, internalConvertFromKeyStroke, internalConvertFromObject, internalConvertToKeyStroke, internalConvertToObject, internalGetChildren, internalInsertChild, internalRemoveAllChildren, internalRemoveChild, internalRemoveListener, isUploaded, markUncollectable, release, saveState, saveState, saveState, saveState, saveState, saveState, saveState, saveState, saveState, saveState, saveState, saveState, sendUI, sendUI, sendUI, typeString, update, update, update, update, update, update, update, update, update, update, update, upload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ULCAbstractLayoutPane

public ULCAbstractLayoutPane()
Method Detail

saveState

protected void saveState(com.ulcjava.base.shared.internal.Anything a)
Overrides:
saveState in class ULCComponent

add

public void add(ULCComponent component)
Adds the specified component to the pane.
Parameters:
component - the component to be added

remove

public void remove(ULCComponent component)
Removes the specified component from the pane.
Parameters:
component - the component to be removed

getComponent

public ULCComponent getComponent(int position)
Returns the component at the given position.
Parameters:
position - the position of the component
Returns:
the component at the given position

getComponents

public ULCComponent[] getComponents()
Returns all contained components.
Returns:
all contained components

getComponentCount

public int getComponentCount()
Returns the number of contained components.
Returns:
the number of contained components

indexOf

public int indexOf(ULCComponent component)
Returns the position of the given component. If the component is not contained in this pane, -1 is returned.
Parameters:
component - the component
Returns:
the position of the given component or -1 if the component is not contained

getComponentConstraints

protected Object getComponentConstraints(ULCComponent component)

setComponentConstraints

protected void setComponentConstraints(ULCComponent component,
                                       Object constraints)

getPropertyPrefix

protected String getPropertyPrefix()
Returns the client-side default UI properties prefix.
Overrides:
getPropertyPrefix in class ULCComponent
Returns:
the property prefix constant

internalConvertFromComponents

protected com.ulcjava.base.shared.internal.Anything internalConvertFromComponents(List components,
                                                                                  Map componentTable)

internalConvert

protected com.ulcjava.base.shared.internal.Anything internalConvert(ULCComponent component,
                                                                    Object constraints)

internalConvertFromConstraints

protected abstract com.ulcjava.base.shared.internal.Anything internalConvertFromConstraints(Object constraints)

layout

Contact Etienne Studer for feedback.