org.karora.cooee.ng
Class AbleProperties

java.lang.Object
  extended by org.karora.cooee.app.Component
      extended by org.karora.cooee.ng.ComponentEx
          extended by org.karora.cooee.ng.AbleComponent
              extended by org.karora.cooee.ng.AbleProperties
All Implemented Interfaces:
java.io.Serializable, RenderIdSupport, AccessKeyable, Alignable, Attributeable, BackgroundImageable, Borderable, Delegateable, Heightable, Insetable, MouseCursorable, Sizeable, ToolTipable, Widthable

public class AbleProperties
extends AbleComponent
implements java.io.Serializable, Alignable, BackgroundImageable

AbleProperties is a collection of UI properties that are related to the various *.able interfaces. This allows you to specify many individual properties in one object.

This class is really design to be used NOT as a fully fledged component in its own right but rather as a holder of specific properties. Being derived from Component allows it to re-use much of the Style/Property/Rendering code infrastructure of Echo2.

Because AbleProperties is ultimately derived from Component, then you can set properties in here via Style objects. However to get full StyleSheet support, the AbleProperties must be part of the Echo2 component hiearchy.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.karora.cooee.ng.ComponentEx
PROPERTY_HIDDEN
 
Fields inherited from class org.karora.cooee.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
 
Fields inherited from interface org.karora.cooee.ng.able.Alignable
PROPERTY_ALIGNMENT
 
Fields inherited from interface org.karora.cooee.ng.able.BackgroundImageable
PROPERTY_BACKGROUND_IMAGE
 
Fields inherited from interface org.karora.cooee.ng.able.AccessKeyable
PROPERTY_ACCESS_KEY
 
Fields inherited from interface org.karora.cooee.ng.able.Borderable
PROPERTY_BORDER
 
Fields inherited from interface org.karora.cooee.ng.able.MouseCursorable
CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, PROPERTY_MOUSE_CURSOR, PROPERTY_MOUSE_CURSOR_URI
 
Fields inherited from interface org.karora.cooee.ng.able.Insetable
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS
 
Fields inherited from interface org.karora.cooee.ng.able.Widthable
PROPERTY_WIDTH
 
Fields inherited from interface org.karora.cooee.ng.able.Heightable
PROPERTY_HEIGHT
 
Fields inherited from interface org.karora.cooee.ng.able.ToolTipable
PROPERTY_TOOL_TIP_TEXT
 
Constructor Summary
AbleProperties()
          Constructs a AbleProperties
 
Method Summary
 Alignment getAlignment()
          Returns the Alignment in use
 FillImage getBackgroundImage()
          Returns the BackgroundImage in use
 boolean isValidChild(Component child)
          We dont allow anu children to be added to the component.
 void setAlignment(Alignment newValue)
          Sets the Alignment in use
 void setBackgroundImage(FillImage newValue)
          Sets the BackgroundImage in use
 
Methods inherited from class org.karora.cooee.ng.AbleComponent
getAccessKey, getBorder, getHeight, getInsets, getMouseCursor, getMouseCursorUri, getOutsets, getToolTipText, getWidth, setAccessKey, setBorder, setHeight, setInsets, setMouseCursor, setMouseCursorUri, setOutsets, setToolTipText, setWidth
 
Methods inherited from class org.karora.cooee.ng.ComponentEx
getAttribute, getAttributeNames, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, isHidden, setAttribute, setHidden, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty
 
Methods inherited from class org.karora.cooee.app.Component
add, add, 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, 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
 
Methods inherited from interface org.karora.cooee.ng.able.Delegateable
getRenderProperty, getRenderProperty
 
Methods inherited from interface org.karora.cooee.ng.able.Delegateable
getRenderProperty, getRenderProperty
 

Constructor Detail

AbleProperties

public AbleProperties()
Constructs a AbleProperties

Method Detail

isValidChild

public boolean isValidChild(Component child)
We dont allow anu children to be added to the 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(org.karora.cooee.app.Component)

getAlignment

public Alignment getAlignment()
Description copied from interface: Alignable
Returns the Alignment in use

Specified by:
getAlignment in interface Alignable
Returns:
the Alignment in use
See Also:
Alignable.getAlignment()

setAlignment

public void setAlignment(Alignment newValue)
Description copied from interface: Alignable
Sets the Alignment in use

Specified by:
setAlignment in interface Alignable
Parameters:
newValue - - the Alignment to be used
See Also:
Alignable.setAlignment(org.karora.cooee.app.Alignment)

getBackgroundImage

public FillImage getBackgroundImage()
Description copied from interface: BackgroundImageable
Returns the BackgroundImage in use

Specified by:
getBackgroundImage in interface BackgroundImageable
Returns:
the BackgroundImage in use
See Also:
BackgroundImageable.getBackgroundImage()

setBackgroundImage

public void setBackgroundImage(FillImage newValue)
Description copied from interface: BackgroundImageable
Sets the BackgroundImage in use

Specified by:
setBackgroundImage in interface BackgroundImageable
Parameters:
newValue - - the BackgroundImage to be used
See Also:
BackgroundImageable.setBackgroundImage(org.karora.cooee.app.FillImage)


Copyright © 2009. All Rights Reserved.