|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.Component
nextapp.echo2.app.button.AbstractButton
nextapp.echo2.app.Button
echopointng.ButtonEx
public class ButtonEx
The ButtonEx class provides extra EchoPoint features beyond the
nextapp.echo2.app.ButtonEx
Its rollover functions are enabled by default and its supports the extra EchoPoint interfaces such as Borderable, MouseCursorable, AccessKeyable.
| Field Summary | |
|---|---|
static Style |
DEFAULT_STYLE
|
| Fields inherited from interface echopointng.able.Borderable |
|---|
PROPERTY_BORDER |
| 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.AccessKeyable |
|---|
PROPERTY_ACCESS_KEY |
| Fields inherited from interface echopointng.able.Insetable |
|---|
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS |
| Fields inherited from interface echopointng.able.Widthable |
|---|
PROPERTY_WIDTH |
| Fields inherited from interface echopointng.able.Heightable |
|---|
PROPERTY_HEIGHT |
| Fields inherited from interface echopointng.able.ToolTipable |
|---|
PROPERTY_TOOL_TIP_TEXT |
| Constructor Summary | |
|---|---|
ButtonEx()
Creates a button with no text or icon. |
|
ButtonEx(ImageReference icon)
Creates a button with an icon. |
|
ButtonEx(java.lang.String text)
Creates a button with text. |
|
ButtonEx(java.lang.String text,
ImageReference icon)
Creates a button with text 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. |
Insets |
getInsets()
Returns the margin between the buttons edge and its content. |
int |
getMouseCursor()
Returns the current mouse cursor in use. |
java.lang.String |
getMouseCursorURI()
|
Insets |
getOutsets()
|
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 |
setInsets(Insets newValue)
Sets the margin between the buttons edge and its content. |
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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface echopointng.able.Borderable |
|---|
getBorder, setBorder |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Widthable |
|---|
getWidth, setWidth |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Heightable |
|---|
getHeight, setHeight |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.ToolTipable |
|---|
getToolTipText, setToolTipText |
| Field Detail |
|---|
public static final Style DEFAULT_STYLE
| Constructor Detail |
|---|
public ButtonEx()
public ButtonEx(java.lang.String text)
text - A text label to display in the button.public ButtonEx(ImageReference icon)
icon - An icon to display in the button.
public ButtonEx(java.lang.String text,
ImageReference icon)
text - A text label to display in the button.icon - An icon to display in the button.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getAccessKey()
AccessKeyable
getAccessKey in interface AccessKeyableAccessKeyable.getAccessKey()public Insets getInsets()
AbstractButton
getInsets in interface InsetablegetInsets in class AbstractButtonInsetable.getInsets()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 void setAccessKey(java.lang.String newValue)
AccessKeyable
setAccessKey in interface AccessKeyablenewValue - -
the access key to be used.AccessKeyable.setAccessKey(java.lang.String)public void setInsets(Insets newValue)
AbstractButton
setInsets in interface InsetablesetInsets in class AbstractButtonnewValue - the new marginInsetable.setInsets(nextapp.echo2.app.Insets)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 java.lang.Object getAttribute(java.lang.String attributeName)
Attributeable
getAttribute in interface AttributeableattributeName - - 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 AttributeableattributeName - - 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 AttributeableAttributeable.getAttributeNames()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||