|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopointng.layout.DisplayLayoutData
public class DisplayLayoutData
DisplayLayoutData is used to specify special display
information for a child component. This class allows its parent container to
"position" the child component without the child component having to have to
support the various echopointng.able interfaces.
DisplayLayoutData,
such as ContainerEx, use it to produce a "mini" container
around the component. The properties specified in the
DisplayLayoutData are then used to control this "mini"
container not the child component itself. So for example the MouseCursorable
properties are set on the "mini" container even if the contained child
component does not implement the MouseCursorable interface.
Remember a single instance of DisplayLayoutData can be used on many components and hence memory can be saved.
| Field Summary |
|---|
| Fields inherited from interface echopointng.able.Positionable |
|---|
ABSOLUTE, FIXED, PROPERTY_BOTTOM, PROPERTY_LEFT, PROPERTY_POSITION, PROPERTY_RIGHT, PROPERTY_TOP, PROPERTY_ZINDEX, RELATIVE, STATIC |
| Fields inherited from interface echopointng.able.Widthable |
|---|
PROPERTY_WIDTH |
| Fields inherited from interface echopointng.able.Heightable |
|---|
PROPERTY_HEIGHT |
| Fields inherited from interface echopointng.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 echopointng.able.Insetable |
|---|
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS |
| Fields inherited from interface echopointng.able.Borderable |
|---|
PROPERTY_BORDER |
| Fields inherited from interface echopointng.able.Alignable |
|---|
PROPERTY_ALIGNMENT |
| Fields inherited from interface echopointng.able.BackgroundImageable |
|---|
PROPERTY_BACKGROUND_IMAGE |
| Constructor Summary | |
|---|---|
DisplayLayoutData()
|
|
| Method Summary | |
|---|---|
void |
clear()
This sets all the positioning attributes (left,top,right,bottom,z-index) to null or zero. |
Alignment |
getAlignment()
Returns the alignment of the cell. |
Color |
getBackground()
Returns the default/base background color of the DisplayLayoutData. |
FillImage |
getBackgroundImage()
Returns the background image of the cell. |
Border |
getBorder()
|
Extent |
getBottom()
Returns the bottom Y position of the component |
Font |
getFont()
Returns the default/base font of the DisplayLayoutData. |
Color |
getForeground()
Returns the default/base foreground color of the DisplayLayoutData. |
Extent |
getHeight()
Retutns the height extent of the Heightable. |
Insets |
getInsets()
|
Extent |
getLeft()
Returns the left X position of the component |
int |
getMouseCursor()
Returns the current mouse cursor in use. |
java.lang.String |
getMouseCursorURI()
|
Insets |
getOutsets()
|
int |
getPosition()
This can be one of : POSITIONING_STATIC POSITIONING_RELATIVE POSITIONING_ABSOLUTE POSITIONING_FIXED |
protected java.lang.Object |
getProperty(java.lang.String propertyName)
|
protected boolean |
getProperty(java.lang.String propertyName,
boolean defaultValue)
|
protected int |
getProperty(java.lang.String propertyName,
int defaultValue)
|
java.lang.Object |
getRenderProperty(java.lang.String propertyName)
Retutns the rendered value of a property. |
java.lang.Object |
getRenderProperty(java.lang.String propertyName,
java.lang.Object defaultValue)
Returns the rendered value of a property or a default value if its found to be null. |
Extent |
getRight()
Returns the right X position of the component |
Extent |
getTop()
Returns the top Y position of the component |
Extent |
getWidth()
Returns the width extent of the Widthable. |
int |
getZindex()
Returns the z-index of the component |
boolean |
isPositioned()
This returns true if any positioning is in place other than normal flow ie. |
void |
setAlignment(Alignment newValue)
Sets the alignment of the cell. |
void |
setBackground(Color newValue)
Sets the default background color of the DisplayLayoutData. |
void |
setBackgroundImage(FillImage newValue)
Sets the background image of the cell. |
void |
setBorder(Border newValue)
Sets the Border to be used by the Borderable |
void |
setBottom(Extent newValue)
Sets the bottom Y position of the component |
void |
setFont(Font newValue)
Sets the default text font of the DisplayLayoutData. |
void |
setForeground(Color newValue)
Sets the default foreground color of the DisplayLayoutData. |
void |
setHeight(Extent newValue)
Sets the height extent of the Heightable. |
void |
setInsets(Insets newValue)
Sets the Insets in play. |
void |
setLeft(Extent newValue)
Set the left X position of the component |
void |
setMouseCursor(int mouseCursor)
Sets the mouse cursor to use. |
void |
setMouseCursorURI(java.lang.String mouseCursorURI)
Sets the URI to a custom platform mouse cursor. |
void |
setOutsets(Insets newValue)
Sets the Outsets in play. |
void |
setPosition(int newPositioning)
Sets the position of the component This can be one of : POSITIONING_STATIC POSITIONING_RELATIVE POSITIONING_ABSOLUTE POSITIONING_FIXED |
protected void |
setProperty(java.lang.String propertyName,
boolean newValue)
|
protected void |
setProperty(java.lang.String propertyName,
int newValue)
|
protected void |
setProperty(java.lang.String propertyName,
java.lang.Object newValue)
|
void |
setRight(Extent newValue)
Sets the right X position of the component |
void |
setTop(Extent newValue)
Sets the top Y position of the component |
void |
setWidth(Extent newValue)
Sets the width extent of the Widthable. |
void |
setZIndex(int newValue)
Sets the z-index of the component |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DisplayLayoutData()
| Method Detail |
|---|
public void clear()
Positionable
clear in interface PositionablePositionable.clear()public Color getBackground()
DisplayLayoutData.
public Border getBorder()
getBorder in interface BorderableBorder of the Borderable.Borderable.getBorder()public Extent getBottom()
Positionable
getBottom in interface PositionablePositionable.getBottom()public Font getFont()
DisplayLayoutData.
public Color getForeground()
DisplayLayoutData.
public Extent getHeight()
HeightableHeightable.
getHeight in interface HeightableHeightable.Heightable.getHeight()public Insets getInsets()
getInsets in interface InsetableInsetable.getInsets()public Extent getLeft()
Positionable
getLeft in interface PositionablePositionable.getLeft()public int getMouseCursor()
MouseCursorable
getMouseCursor in interface MouseCursorableMouseCursorable.getMouseCursor()public java.lang.String getMouseCursorURI()
getMouseCursorURI in interface MouseCursorableMouseCursorable.getMouseCursorURI()public Insets getOutsets()
getOutsets in interface InsetableInsetable.getOutsets()public int getPosition()
Positionable
getPosition in interface PositionablePositionable.getPosition()protected java.lang.Object getProperty(java.lang.String propertyName)
protected boolean getProperty(java.lang.String propertyName,
boolean defaultValue)
protected int getProperty(java.lang.String propertyName,
int defaultValue)
public java.lang.Object getRenderProperty(java.lang.String propertyName)
Delegateable
getRenderProperty in interface DelegateablepropertyName - -
the named of as property as defined by this interface
Delegateable.getRenderProperty(java.lang.String)
public java.lang.Object getRenderProperty(java.lang.String propertyName,
java.lang.Object defaultValue)
Delegateable
getRenderProperty in interface DelegateablepropertyName - -
the named of as property as defined by this interfacedefaultValue - -
the default value if the property is null
Delegateable.getRenderProperty(java.lang.String,
java.lang.Object)public Extent getRight()
Positionable
getRight in interface PositionablePositionable.getRight()public Extent getTop()
Positionable
getTop in interface PositionablePositionable.getTop()public Extent getWidth()
WidthableWidthable.
getWidth in interface WidthableWidthable.Widthable.getWidth()public int getZindex()
Positionable
getZindex in interface PositionablePositionable.getZindex()public boolean isPositioned()
Positionable
isPositioned in interface PositionablePositionable.isPositioned()public void setBackground(Color newValue)
DisplayLayoutData.
newValue - the new background Colorpublic void setBorder(Border newValue)
BorderableBorder to be used by the Borderable
setBorder in interface BorderablenewValue - - the new Border to useBorderable.setBorder(nextapp.echo2.app.Border)public void setBottom(Extent newValue)
Positionable
setBottom in interface PositionablePositionable.setBottom(nextapp.echo2.app.Extent)public void setFont(Font newValue)
DisplayLayoutData.
newValue - the new Fontpublic void setForeground(Color newValue)
DisplayLayoutData.
newValue - the new foreground Colorpublic void setHeight(Extent newValue)
HeightableHeightable.
setHeight in interface HeightablenewValue - - the new height extent of the HeightableHeightable.setHeight(nextapp.echo2.app.Extent)public void setInsets(Insets newValue)
Insetable
setInsets in interface InsetablenewValue - -
the Insets to useInsetable.setInsets(nextapp.echo2.app.Insets)public void setLeft(Extent newValue)
Positionable
setLeft in interface PositionablePositionable.setLeft(nextapp.echo2.app.Extent)public void setMouseCursor(int mouseCursor)
MouseCursorable
setMouseCursor in interface MouseCursorablemouseCursor - - the mouse cursor to useMouseCursorable.setMouseCursor(int)public void setMouseCursorURI(java.lang.String mouseCursorURI)
MouseCursorable
setMouseCursorURI in interface MouseCursorablemouseCursorURI - the URI to a custom platform mouse cursor.MouseCursorable.setMouseCursorURI(java.lang.String)public void setOutsets(Insets newValue)
Insetable
setOutsets in interface InsetablenewValue - -
the Ousets to useInsetable.setOutsets(nextapp.echo2.app.Insets)public void setPosition(int newPositioning)
Positionable
setPosition in interface PositionablePositionable.setPosition(int)
protected void setProperty(java.lang.String propertyName,
boolean newValue)
protected void setProperty(java.lang.String propertyName,
int newValue)
protected void setProperty(java.lang.String propertyName,
java.lang.Object newValue)
public void setRight(Extent newValue)
Positionable
setRight in interface PositionablePositionable.setRight(nextapp.echo2.app.Extent)public void setTop(Extent newValue)
Positionable
setTop in interface PositionablePositionable.setTop(nextapp.echo2.app.Extent)public void setWidth(Extent newValue)
WidthableWidthable.
setWidth in interface WidthablenewValue - - the new width extent of the WidthableWidthable.setWidth(nextapp.echo2.app.Extent)public void setZIndex(int newValue)
Positionable
setZIndex in interface PositionablePositionable.setZIndex(int)public Alignment getAlignment()
getAlignment in interface Alignablepublic FillImage getBackgroundImage()
getBackgroundImage in interface BackgroundImageablepublic void setAlignment(Alignment newValue)
setAlignment in interface AlignablenewValue - the new alignmentpublic void setBackgroundImage(FillImage newValue)
setBackgroundImage in interface BackgroundImageablenewValue - the new background image
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||