EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.internal
Class AbstractContainer

java.lang.Object
  extended by nextapp.echo.app.Component
      extended by echopoint.internal.AbstractContainer
All Implemented Interfaces:
Serializable, RenderIdSupport
Direct Known Subclasses:
AbstractChart, AbstractHtmlComponent, AbstractImage, BorderLayout, DockMenu, FileUploadSelector, HttpPane, ProgressBar, PushButton, Strut, TagCloud

public class AbstractContainer
extends Component

An abstract super class for container components. Defines the standard style properties supported by container components.

The following style properites are supported by this component in addition to those supported by Component:

Version:
$Id: AbstractContainer.java 120 2009-02-20 15:43:33Z sptrakesh $
Author:
Rakesh 2008-07-14
See Also:
Serialized Form

Field Summary
static String ACTION_COMMAND_PROPERTY
          The property name for the action command to be updated from client.
static String ACTION_LISTENERS_CHANGED_PROPERTY
          The constant used to track changes to the action listener list.
static String INPUT_ACTION
          The name of the action event registered in the peer when action listeners are added or removed.
static String PROPERTY_ALIGNMENT
          The alignment style for this component.
static String PROPERTY_BACKGROUND_IMAGE
          The background image for this component.
static String PROPERTY_BORDER
          The border style for this component.
static String PROPERTY_HEIGHT
          The height style for this component.
static String PROPERTY_INSETS
          The insets style for this component.
static String PROPERTY_WIDTH
          The width style for this component.
 
Fields inherited from class nextapp.echo.app.Component
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_NEXT_ID_CHANGED_PROPERTY, FOCUS_PREVIOUS_ID_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
AbstractContainer()
           
 
Method Summary
protected  void addActionListener(ActionListener listener)
          Add the specified action listener to this component.
protected  void fireActionPerformed(ActionEvent event)
          Notifies all listeners that have registered for this event type.
 Alignment getAlignment()
          Return the alignment property for this component.
 ImageReference getBackgroundImage()
          Return the backgroundImage property for this component.
 Border getBorder()
          Return the border property for this component.
 Extent getHeight()
          Return the height property for this component.
 Insets getInsets()
          Return the insets property for this component.
 Extent getWidth()
          Return the width property for this component.
protected  boolean hasActionListeners()
          Determines if the button has any ActionListeners registered.
protected  void removeActionListener(ActionListener listener)
          Remove the specified action listener from the component.
 void setAlignment(Alignment alignment)
          Set the alignment style for this component.
 void setBackgroundImage(ImageReference backgroundImage)
          Set the backgroundImage style for this component.
 void setBorder(Border border)
          Set the border style for this component.
 void setHeight(Extent height)
          Set the height style for this component.
 void setInsets(Insets insets)
          Set the insets style for this component.
 void setWidth(Extent width)
          Set the width style for this component.
 
Methods inherited from class nextapp.echo.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusNextId, getFocusPreviousId, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, processInput, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusNextId, setFocusPreviousId, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, 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
 

Field Detail

ACTION_COMMAND_PROPERTY

public static final String ACTION_COMMAND_PROPERTY
The property name for the action command to be updated from client.

See Also:
Constant Field Values

ACTION_LISTENERS_CHANGED_PROPERTY

public static final String ACTION_LISTENERS_CHANGED_PROPERTY
The constant used to track changes to the action listener list.

See Also:
Constant Field Values

INPUT_ACTION

public static final String INPUT_ACTION
The name of the action event registered in the peer when action listeners are added or removed.

See Also:
Constant Field Values

PROPERTY_ALIGNMENT

public static final String PROPERTY_ALIGNMENT
The alignment style for this component.

See Also:
Constant Field Values

PROPERTY_BACKGROUND_IMAGE

public static final String PROPERTY_BACKGROUND_IMAGE
The background image for this component.

See Also:
Constant Field Values

PROPERTY_BORDER

public static final String PROPERTY_BORDER
The border style for this component.

See Also:
Constant Field Values

PROPERTY_INSETS

public static final String PROPERTY_INSETS
The insets style for this component.

See Also:
Constant Field Values

PROPERTY_HEIGHT

public static final String PROPERTY_HEIGHT
The height style for this component.

See Also:
Constant Field Values

PROPERTY_WIDTH

public static final String PROPERTY_WIDTH
The width style for this component.

See Also:
Constant Field Values
Constructor Detail

AbstractContainer

public AbstractContainer()
Method Detail

getAlignment

public Alignment getAlignment()
Return the alignment property for this component.

Returns:
The alignment specified for this component.

setAlignment

public void setAlignment(Alignment alignment)
Set the alignment style for this component.

Parameters:
alignment - The alignment style to apply.

getBackgroundImage

public ImageReference getBackgroundImage()
Return the backgroundImage property for this component.

Returns:
The backgroundImage specified for this component.

setBackgroundImage

public void setBackgroundImage(ImageReference backgroundImage)
Set the backgroundImage style for this component.

Parameters:
backgroundImage - The backgroundImage style to apply.

getBorder

public Border getBorder()
Return the border property for this component.

Returns:
The border specified for this component.

setBorder

public void setBorder(Border border)
Set the border style for this component.

Parameters:
border - The border style to apply.

getInsets

public Insets getInsets()
Return the insets property for this component.

Returns:
The insets specified for this component.

setInsets

public void setInsets(Insets insets)
Set the insets style for this component.

Parameters:
insets - The insets style to apply.

getHeight

public Extent getHeight()
Return the height property for this component.

Returns:
The height specified for this component.

setHeight

public void setHeight(Extent height)
Set the height style for this component.

Parameters:
height - The height style to apply.

getWidth

public Extent getWidth()
Return the width property for this component.

Returns:
The width specified for this component.

setWidth

public void setWidth(Extent width)
Set the width style for this component.

Parameters:
width - The width style to apply.

fireActionPerformed

protected void fireActionPerformed(ActionEvent event)
Notifies all listeners that have registered for this event type.

Parameters:
event - The ActionEvent to send

addActionListener

protected void addActionListener(ActionListener listener)
Add the specified action listener to this component.

Parameters:
listener - The action listener to add.
See Also:
Component.firePropertyChange(String, Object, Object)

removeActionListener

protected void removeActionListener(ActionListener listener)
Remove the specified action listener from the component.

Parameters:
listener - The listener that is to be removed.
See Also:
Component.firePropertyChange(String, Object, Object)

hasActionListeners

protected boolean hasActionListeners()
Determines if the button has any ActionListeners registered.

Returns:
true if any action listeners are registered

EchoPoint API - 3.0.0b5
App Webcontainer