|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.Component nextapp.echo.AbstractButton nextapp.echo.Button echopoint.PushButton echopoint.ExitButton
The ExitButton
class is an implementation
of the basic echo Button
component that allows linking
to other web URI,leaving the echo web application is a consistent state.
Echo application instances must be exited or suspended if another URL link is to be followed. This component allows you to do just that.
Nested Class Summary | |
static class |
ExitButton.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
static java.lang.String |
MODE_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_EXIT_MODE
A style constant for the ExitMode property. |
static java.lang.String |
STYLE_URI
A style constant for the URI property. |
static java.lang.String |
URI_CHANGED_PROPERTY
|
Fields inherited from class echopoint.PushButton |
RENDERING_CHANGED_PROPERTY |
Fields inherited from class nextapp.echo.AbstractButton |
ACTION_COMMAND_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, ICON_TEXT_MARGIN_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, ROLLOVER_BACKGROUND_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_FONT_CHANGED_PROPERTY, ROLLOVER_FOREGROUND_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, STYLE_HORIZONTAL_ALIGNMENT, STYLE_HORIZONTAL_TEXT_POSITION, STYLE_ICON_TEXT_MARGIN, STYLE_ROLLOVER_BACKGROUND, STYLE_ROLLOVER_ENABLED, STYLE_ROLLOVER_FONT, STYLE_ROLLOVER_FOREGROUND, STYLE_VERTICAL_ALIGNMENT, STYLE_VERTICAL_TEXT_POSITION, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY |
Fields inherited from class nextapp.echo.Component |
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY |
Fields inherited from interface nextapp.echo.ToolTipSupport |
TOOL_TIP_TEXT_CHANGED_PROPERTY |
Fields inherited from interface echopoint.positionable.MouseCursorable |
borderStyleSymbolics, 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, STYLE_MOUSE_CURSOR, STYLE_MOUSE_CURSOR_URI |
Fields inherited from interface echopoint.validation.ValidationSubmitter |
RULESETS_RUN_ALL, RULESETS_RUN_DEFAULT |
Constructor Summary | |
ExitButton()
Creates an ExitButton with no text or icon. |
|
ExitButton(java.lang.String text)
Creates an ExitButton with text. |
|
ExitButton(java.lang.String uri,
nextapp.echo.ImageReference icon)
Creates an ExitButton with an icon. |
|
ExitButton(java.lang.String uri,
java.lang.String text)
Creates an ExitButton with text. |
|
ExitButton(java.lang.String uri,
java.lang.String text,
nextapp.echo.ImageReference icon)
Creates an ExitButton with text and an icon. |
Method Summary | |
void |
actionPerformed(nextapp.echo.event.ActionEvent e)
The button is an action listener on itself and if its pressed then the application will be suspended or exited, depending on exit mode. |
void |
applyStyle(nextapp.echo.Style style)
Applies the provided style to the component. |
java.lang.String |
getURI()
Returns the URI that will be shown if the button is pressed |
boolean |
isExitMode()
Returns true if the button is in exit mode. |
java.lang.Object |
set(java.lang.reflect.Field field,
java.lang.Object newValue)
Called to save the old value of a field, set in a new value and return the old value of a field. |
void |
setExitMode(boolean newMode)
Sets wheteher the echo application will be exited or suspended when this button is pressed. |
void |
setURI(java.lang.String newURI)
Sets the web URI that will invoked if this button is pressed. |
Methods inherited from class nextapp.echo.AbstractButton |
addActionListener, addChangeListener, addItemListener, doAction, fireActionPerformed, fireItemStateChanged, fireStateChanged, getActionCommand, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextMargin, getModel, getRolloverBackground, getRolloverFont, getRolloverForeground, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getText, getVerticalAlignment, getVerticalTextPosition, hasActionListeners, isRolloverEnabled, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextMargin, setModel, setRolloverBackground, setRolloverEnabled, setRolloverFont, setRolloverForeground, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setText, setVerticalAlignment, setVerticalTextPosition |
Methods inherited from class nextapp.echo.Component |
add, add, addHierarchyListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getLocale, getParent, indexOf, init, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setEnabled, setFont, setForeground, setIdentifier, setLocale, setVisible, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String MODE_CHANGED_PROPERTY
public static final java.lang.String URI_CHANGED_PROPERTY
public static final java.lang.String STYLE_EXIT_MODE
boolean
public static final java.lang.String STYLE_URI
String
Constructor Detail |
public ExitButton()
ExitButton
with no text or icon.
public ExitButton(java.lang.String text)
ExitButton
with text.
public ExitButton(java.lang.String uri, nextapp.echo.ImageReference icon)
ExitButton
with an icon.
public ExitButton(java.lang.String uri, java.lang.String text)
ExitButton
with text.
public ExitButton(java.lang.String uri, java.lang.String text, nextapp.echo.ImageReference icon)
ExitButton
with text and an icon.
Method Detail |
public void actionPerformed(nextapp.echo.event.ActionEvent e)
actionPerformed
in interface nextapp.echo.event.ActionListener
public void applyStyle(nextapp.echo.Style style)
nextapp.echo.Component
style names can be used as well.
applyStyle
in interface Borderable
applyStyle
in class PushButton
Borderable.applyStyle(nextapp.echo.Style)
public java.lang.String getURI()
public boolean isExitMode()
public void setExitMode(boolean newMode)
public void setURI(java.lang.String newURI)
public java.lang.Object set(java.lang.reflect.Field field, java.lang.Object newValue) throws java.lang.Exception
ReflectionSetter
public Object set(Field f, Object newValue) throws Exception { Object oldValue = f.get(this); f.set(this,newValue); return oldValue; }
set
in interface ReflectionSetter
set
in class PushButton
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |