|
EchoPoint 2.1.0rc4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo2.app.Component
nextapp.echo2.app.Label
echopointng.LabelEx
LabelEx
is a LabelEx with extras such as rollovers and
borders.
Field Summary | |
static nextapp.echo2.app.Style |
DEFAULT_STYLE
|
static java.lang.String |
PROPERTY_BACKGROUND_IMAGE
|
static java.lang.String |
PROPERTY_DISABLED_BACKGROUND
|
static java.lang.String |
PROPERTY_DISABLED_BACKGROUND_IMAGE
|
static java.lang.String |
PROPERTY_DISABLED_BORDER
|
static java.lang.String |
PROPERTY_DISABLED_FONT
|
static java.lang.String |
PROPERTY_DISABLED_FOREGROUND
|
static java.lang.String |
PROPERTY_DISABLED_ICON
|
static java.lang.String |
PROPERTY_INTERPRET_NEWLINES
|
static java.lang.String |
PROPERTY_LINE_WRAP
|
static java.lang.String |
PROPERTY_ROLLOVER_BACKGROUND
|
static java.lang.String |
PROPERTY_ROLLOVER_BACKGROUND_IMAGE
|
static java.lang.String |
PROPERTY_ROLLOVER_BORDER
|
static java.lang.String |
PROPERTY_ROLLOVER_ENABLED
|
static java.lang.String |
PROPERTY_ROLLOVER_FONT
|
static java.lang.String |
PROPERTY_ROLLOVER_FOREGROUND
|
static java.lang.String |
PROPERTY_ROLLOVER_ICON
|
Fields inherited from class nextapp.echo2.app.Label |
PROPERTY_ICON, PROPERTY_ICON_TEXT_MARGIN, PROPERTY_TEXT, PROPERTY_TEXT_ALIGNMENT, PROPERTY_TEXT_POSITION, PROPERTY_TOOL_TIP_TEXT |
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 |
Fields inherited from interface echopointng.able.Borderable |
PROPERTY_BORDER |
Fields inherited from interface echopointng.able.Widthable |
PROPERTY_WIDTH |
Fields inherited from interface echopointng.able.Heightable |
PROPERTY_HEIGHT |
Fields inherited from interface echopointng.able.Insetable |
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS |
Fields inherited from interface echopointng.able.AccessKeyable |
PROPERTY_ACCESS_KEY |
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.ToolTipable |
PROPERTY_TOOL_TIP_TEXT |
Constructor Summary | |
LabelEx()
Creates a LabelEx with no text or icon. |
|
LabelEx(nextapp.echo2.app.ImageReference icon)
Creates a LabelEx with an icon. |
|
LabelEx(java.lang.String text)
Creates a LabelEx with the specified text. |
|
LabelEx(java.lang.String text,
nextapp.echo2.app.ImageReference icon)
Creates a LabelEx with the specified text and an icon. |
|
LabelEx(XhtmlFragment text)
Creates a label with the specified XhtmlFragment . |
|
LabelEx(XhtmlFragment text,
nextapp.echo2.app.ImageReference icon)
Creates a label with the specified XhtmlFragment and an icon. |
Method Summary | |
java.lang.String |
getAccessKey()
Returns the access key in use. |
java.lang.Object |
getAttribute(java.lang.String attributeName)
Returns a value for the given attribute name or null if one cannot be found. |
java.lang.String[] |
getAttributeNames()
Returns a String array with the names of the the attributes that have neen set. |
nextapp.echo2.app.FillImage |
getBackgroundImage()
Returns the background image of the LabelEx. |
nextapp.echo2.app.Border |
getBorder()
|
nextapp.echo2.app.Color |
getDisabledBackground()
Returns the background color of the LabelEx when the
LabelEx is disabled. |
nextapp.echo2.app.FillImage |
getDisabledBackgroundImage()
Returns the background image displayed when the LabelEx is
disabled. |
nextapp.echo2.app.Border |
getDisabledBorder()
Returns the border displayed around the LabelEx when the
LabelEx is disabled. |
nextapp.echo2.app.Font |
getDisabledFont()
Returns the font of the LabelEx when the
LabelEx is disabled. |
nextapp.echo2.app.Color |
getDisabledForeground()
Returns the foreground color of the LabelEx when the
LabelEx is disabled. |
nextapp.echo2.app.ImageReference |
getDisabledIcon()
Returns the icon of the LabelEx that is displayed when the
LabelEx is disabled. |
nextapp.echo2.app.Extent |
getHeight()
Retutns the height extent of the Heightable . |
nextapp.echo2.app.Insets |
getInsets()
|
int |
getMouseCursor()
Returns the current mouse cursor in use. |
java.lang.String |
getMouseCursorUri()
|
nextapp.echo2.app.Insets |
getOutsets()
|
nextapp.echo2.app.Color |
getRolloverBackground()
Returns the background color of the LabelEx when the mouse cursor is inside its bounds. |
nextapp.echo2.app.FillImage |
getRolloverBackgroundImage()
Returns the background image displayed when the mouse cursor is inside the LabelEx's bounds. |
nextapp.echo2.app.Border |
getRolloverBorder()
Returns the border displayed around the LabelEx when the mouse cursor is inside its bounds. |
nextapp.echo2.app.Font |
getRolloverFont()
Returns the font of the LabelEx when the mouse cursor is inside its bounds. |
nextapp.echo2.app.Color |
getRolloverForeground()
Returns the foreground color of the LabelEx when the mouse cursor is inside its bounds. |
nextapp.echo2.app.ImageReference |
getRolloverIcon()
Returns the icon of the LabelEx that is displayed when the mouse cursor is inside its bounds. |
java.lang.String |
getText()
If the value in PROPERTY_TEXT is a XhtmlFragment, then
the XhtmlFragment.toString() is returned, otherwise a
String value is returned.
|
nextapp.echo2.app.Extent |
getWidth()
Returns the width extent of the Widthable . |
boolean |
isIntepretNewlines()
|
boolean |
isLineWrap()
Returns whether text wrapping is allowed or not. |
boolean |
isRolloverEnabled()
Determines if rollover effects are enabled. |
void |
setAccessKey(java.lang.String newValue)
Sets the access key to be used. |
void |
setAttribute(java.lang.String attributeName,
java.lang.Object attributeValue)
Sets a value for a given attribute name. |
void |
setBackgroundImage(nextapp.echo2.app.FillImage newValue)
Sets the background image of the LabelEx. |
void |
setBorder(nextapp.echo2.app.Border newValue)
Sets the Border to be used by the Borderable |
void |
setDisabledBackground(nextapp.echo2.app.Color newValue)
Sets the background color of the LabelEx when the
LabelEx is disabled. |
void |
setDisabledBackgroundImage(nextapp.echo2.app.FillImage newValue)
Sets the background image displayed when the LabelEx is
disabled. |
void |
setDisabledBorder(nextapp.echo2.app.Border newValue)
Sets the border displayed around the LabelEx when the
LabelEx is disabled. |
void |
setDisabledFont(nextapp.echo2.app.Font newValue)
Sets the font of the LabelEx when the LabelEx
is disabled. |
void |
setDisabledForeground(nextapp.echo2.app.Color newValue)
Sets the foreground color of the LabelEx when the
LabelEx is disabled. |
void |
setDisabledIcon(nextapp.echo2.app.ImageReference newValue)
Sets the icon of the LabelEx that is displayed when the
LabelEx is disabled. |
void |
setHeight(nextapp.echo2.app.Extent newValue)
Sets the height extent of the Heightable . |
void |
setInsets(nextapp.echo2.app.Insets newValue)
Sets the Insets in play. |
void |
setIntepretNewlines(boolean newValue)
Sets whether newlines in the text of the LabelEx are
intepreted or not. |
void |
setLineWrap(boolean newValue)
Returns whether line wrapping is in place. |
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(nextapp.echo2.app.Insets newValue)
Sets the Outsets in play. |
void |
setRolloverBackground(nextapp.echo2.app.Color newValue)
Sets the background color of the LabelEx when the mouse cursor is inside its bounds. |
void |
setRolloverBackgroundImage(nextapp.echo2.app.FillImage newValue)
Sets the background image displayed when the mouse cursor is inside the LabelEx's bounds |
void |
setRolloverBorder(nextapp.echo2.app.Border newValue)
Sets the border displayed around the LabelEx when the mouse cursor is inside its bounds. |
void |
setRolloverEnabled(boolean newValue)
Sets whether rollover effects are enabled when the mouse cursor is inside the LabelEx's bounds. |
void |
setRolloverFont(nextapp.echo2.app.Font newValue)
Sets the font of the LabelEx when the mouse cursor is inside its bounds. |
void |
setRolloverForeground(nextapp.echo2.app.Color newValue)
Sets the foreground color of the LabelEx when the mouse cursor is inside its bounds. |
void |
setRolloverIcon(nextapp.echo2.app.ImageReference newValue)
Sets the icon of the LabelEx that is displayed when the mouse cursor is inside its bounds. |
void |
setText(XhtmlFragment fragment)
This version of setText() will set an XhtmlFragment inside
the Label |
void |
setWidth(nextapp.echo2.app.Extent newValue)
Sets the width extent of the Widthable . |
Methods inherited from class nextapp.echo2.app.Label |
getIcon, getIconTextMargin, getTextAlignment, getTextPosition, getToolTipText, isValidChild, setIcon, setIconTextMargin, setText, setTextAlignment, setTextPosition, setToolTipText |
Methods inherited from class nextapp.echo2.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 echopointng.able.Delegateable |
getRenderProperty, getRenderProperty |
Methods inherited from interface echopointng.able.ToolTipable |
getToolTipText, setToolTipText |
Field Detail |
public static final java.lang.String PROPERTY_BACKGROUND_IMAGE
public static final java.lang.String PROPERTY_DISABLED_BACKGROUND
public static final java.lang.String PROPERTY_DISABLED_BACKGROUND_IMAGE
public static final java.lang.String PROPERTY_DISABLED_BORDER
public static final java.lang.String PROPERTY_DISABLED_FONT
public static final java.lang.String PROPERTY_DISABLED_FOREGROUND
public static final java.lang.String PROPERTY_DISABLED_ICON
public static final java.lang.String PROPERTY_LINE_WRAP
public static final java.lang.String PROPERTY_ROLLOVER_BACKGROUND
public static final java.lang.String PROPERTY_ROLLOVER_BACKGROUND_IMAGE
public static final java.lang.String PROPERTY_ROLLOVER_BORDER
public static final java.lang.String PROPERTY_ROLLOVER_ENABLED
public static final java.lang.String PROPERTY_ROLLOVER_FONT
public static final java.lang.String PROPERTY_ROLLOVER_FOREGROUND
public static final java.lang.String PROPERTY_ROLLOVER_ICON
public static final java.lang.String PROPERTY_INTERPRET_NEWLINES
public static final nextapp.echo2.app.Style DEFAULT_STYLE
Constructor Detail |
public LabelEx()
LabelEx
with no text or icon.
public LabelEx(nextapp.echo2.app.ImageReference icon)
LabelEx
with an icon.
icon
- the icon to be displayedpublic LabelEx(java.lang.String text)
LabelEx
with the specified text.
text
- the text to be displayedpublic LabelEx(java.lang.String text, nextapp.echo2.app.ImageReference icon)
LabelEx
with the specified text and an icon.
text
- the text to be displayedicon
- the icon to be displayedpublic LabelEx(XhtmlFragment text)
XhtmlFragment
.
text
- the XhtmlFragment
to be displayedpublic LabelEx(XhtmlFragment text, nextapp.echo2.app.ImageReference icon)
XhtmlFragment
and an icon.
text
- the XhtmlFragment
to be displayedicon
- the icon to be displayedMethod Detail |
public nextapp.echo2.app.FillImage getBackgroundImage()
public nextapp.echo2.app.Color getRolloverBackground()
public nextapp.echo2.app.FillImage getRolloverBackgroundImage()
public nextapp.echo2.app.Border getRolloverBorder()
public nextapp.echo2.app.Font getRolloverFont()
public nextapp.echo2.app.Color getRolloverForeground()
public nextapp.echo2.app.ImageReference getRolloverIcon()
public boolean isLineWrap()
If this property is true then the contents of the button MAY be wrapped to fit in the smallest possible space.
public boolean isRolloverEnabled()
setRolloverEnabled(boolean)
public void setBackgroundImage(nextapp.echo2.app.FillImage newValue)
newValue
- the new background imagepublic void setLineWrap(boolean newValue)
If this property is true then the contents of the text MAY be wrapped to fit in the smallest possible space.
newValue
- boolean - the wrap flagpublic void setRolloverBackground(nextapp.echo2.app.Color newValue)
newValue
- the new Color
public void setRolloverBackgroundImage(nextapp.echo2.app.FillImage newValue)
newValue
- the new background imagepublic void setRolloverBorder(nextapp.echo2.app.Border newValue)
newValue
- the new borderpublic void setRolloverEnabled(boolean newValue)
newValue
- true if rollover effects should be enabledpublic void setRolloverFont(nextapp.echo2.app.Font newValue)
newValue
- the new Font
public void setRolloverForeground(nextapp.echo2.app.Color newValue)
newValue
- the new Color
public void setRolloverIcon(nextapp.echo2.app.ImageReference newValue)
newValue
- the new iconpublic java.lang.String getAccessKey()
AccessKeyable
getAccessKey
in interface AccessKeyable
AccessKeyable.getAccessKey()
public nextapp.echo2.app.Extent getHeight()
Heightable
Heightable
.
getHeight
in interface Heightable
Heightable
.Heightable.getHeight()
public nextapp.echo2.app.Insets getInsets()
getInsets
in interface Insetable
Insetable.getInsets()
public int getMouseCursor()
MouseCursorable
getMouseCursor
in interface MouseCursorable
MouseCursorable.getMouseCursor()
public java.lang.String getMouseCursorUri()
getMouseCursorUri
in interface MouseCursorable
MouseCursorable.getMouseCursorUri()
public nextapp.echo2.app.Insets getOutsets()
getOutsets
in interface Insetable
Insetable.getOutsets()
public nextapp.echo2.app.Extent getWidth()
Widthable
Widthable
.
getWidth
in interface Widthable
Widthable
.Widthable.getWidth()
public void setAccessKey(java.lang.String newValue)
AccessKeyable
setAccessKey
in interface AccessKeyable
newValue
- -
the access key to be used.AccessKeyable.setAccessKey(java.lang.String)
public void setHeight(nextapp.echo2.app.Extent newValue)
Heightable
Heightable
.
setHeight
in interface Heightable
newValue
- - the new height extent of the Heightable
Heightable.setHeight(nextapp.echo2.app.Extent)
public void setInsets(nextapp.echo2.app.Insets newValue)
Insetable
setInsets
in interface Insetable
newValue
- -
the Insets to useInsetable.setInsets(nextapp.echo2.app.Insets)
public void setMouseCursor(int mouseCursor)
MouseCursorable
setMouseCursor
in interface MouseCursorable
mouseCursor
- - the mouse cursor to useMouseCursorable.setMouseCursor(int)
public void setMouseCursorUri(java.lang.String mouseCursorURI)
MouseCursorable
setMouseCursorUri
in interface MouseCursorable
mouseCursorURI
- the URI to a custom platform mouse cursor.MouseCursorable.setMouseCursorUri(java.lang.String)
public void setOutsets(nextapp.echo2.app.Insets newValue)
Insetable
setOutsets
in interface Insetable
newValue
- -
the Ousets to useInsetable.setOutsets(nextapp.echo2.app.Insets)
public void setWidth(nextapp.echo2.app.Extent newValue)
Widthable
Widthable
.
setWidth
in interface Widthable
newValue
- - the new width extent of the Widthable
Widthable.setWidth(nextapp.echo2.app.Extent)
public nextapp.echo2.app.Border getBorder()
getBorder
in interface Borderable
Border
of the Borderable
.Borderable.getBorder()
public void setBorder(nextapp.echo2.app.Border newValue)
Borderable
Border
to be used by the Borderable
setBorder
in interface Borderable
newValue
- - the new Border
to useBorderable.setBorder(nextapp.echo2.app.Border)
public java.lang.Object getAttribute(java.lang.String attributeName)
Attributeable
getAttribute
in interface Attributeable
attributeName
- - the name of the attribute to return
Attributeable.getAttribute(java.lang.String)
public void setAttribute(java.lang.String attributeName, java.lang.Object attributeValue)
Attributeable
setAttribute
in interface Attributeable
attributeName
- - the name of the attribute to setattributeValue
- - the value for the attributeAttributeable.setAttribute(java.lang.String,
java.lang.Object)
public java.lang.String[] getAttributeNames()
Attributeable
getAttributeNames
in interface Attributeable
Attributeable.getAttributeNames()
public nextapp.echo2.app.Color getDisabledBackground()
LabelEx
when the
LabelEx
is disabled.
public nextapp.echo2.app.FillImage getDisabledBackgroundImage()
LabelEx
is
disabled.
public nextapp.echo2.app.Border getDisabledBorder()
LabelEx
when the
LabelEx
is disabled.
public nextapp.echo2.app.Font getDisabledFont()
LabelEx
when the
LabelEx
is disabled.
public nextapp.echo2.app.Color getDisabledForeground()
LabelEx
when the
LabelEx
is disabled.
public nextapp.echo2.app.ImageReference getDisabledIcon()
LabelEx
that is displayed when the
LabelEx
is disabled.
public void setDisabledBackground(nextapp.echo2.app.Color newValue)
LabelEx
when the
LabelEx
is disabled.
newValue
- the new Color
public void setDisabledBackgroundImage(nextapp.echo2.app.FillImage newValue)
LabelEx
is
disabled.
newValue
- the new background imagepublic void setDisabledBorder(nextapp.echo2.app.Border newValue)
LabelEx
when the
LabelEx
is disabled.
newValue
- the new borderpublic void setDisabledFont(nextapp.echo2.app.Font newValue)
LabelEx
when the LabelEx
is disabled.
newValue
- the new Font
public void setDisabledForeground(nextapp.echo2.app.Color newValue)
LabelEx
when the
LabelEx
is disabled.
newValue
- the new Color
public void setDisabledIcon(nextapp.echo2.app.ImageReference newValue)
LabelEx
that is displayed when the
LabelEx
is disabled.
newValue
- the new iconpublic boolean isIntepretNewlines()
LabelEx
text are
interpreted. This is off by default.public void setIntepretNewlines(boolean newValue)
LabelEx
are
intepreted or not. For example if this is true
on a
browser client, the new lines will be displayed using <br/> tags.
newValue
- -
the new value of the flagpublic java.lang.String getText()
PROPERTY_TEXT
is a XhtmlFragment, then
the XhtmlFragment.toString()
is returned, otherwise a
String
value is returned.
If you you want access to the underlying XhtmlFragment object itself, then use:
XhtmlFragment fragment = (XhtmlFragment) getProperty(PROPERTY_TEXT);
Label.getText()
public void setText(XhtmlFragment fragment)
setText()
will set an XhtmlFragment inside
the Label
fragment
- -
the XhtmlFragment to useXhtmlFragment
|
EchoPoint 2.1.0rc4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |