NextApp Echo2
v2.1.0

nextapp.echo2.app
Class Composite

java.lang.Object
  extended by nextapp.echo2.app.Component
      extended by nextapp.echo2.app.Composite
All Implemented Interfaces:
java.io.Serializable, RenderIdSupport
Direct Known Subclasses:
Panel

public abstract class Composite
extends Component

Generic composite component base class. This class is intended to be used as base class for composite components. This component will simply display its content without any modification to its appearance or behavior. This component may have at most one child component.

See the Panel component for a default implementation of a single-child container component.

This class provides no benefit if you are providing a custom client/server synchronization peer. If you wish to create a component with a custom client/server synchronization peer, Component itself should be derived instead of this class.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class nextapp.echo2.app.Component
CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
Composite()
           
 
Method Summary
 boolean isValidChild(Component child)
          Allow at most one child component.
 
Methods inherited from class nextapp.echo2.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidParent, isVisible, processInput, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Composite

public Composite()
Method Detail

isValidChild

public boolean isValidChild(Component child)
Allow at most one child component.

Overrides:
isValidChild in class Component
Parameters:
child - the Component to evaluate as a child
Returns:
true if the Component is a valid child
See Also:
Component.isValidChild(nextapp.echo2.app.Component)

NextApp Echo2
v2.1.0