|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.beans.BoundPropertyObject
com.guiseframework.event.GuiseBoundPropertyObject
com.guiseframework.model.ui.AbstractPresentationModel
com.guiseframework.component.AbstractComponent
com.guiseframework.component.AbstractImageComponent
com.guiseframework.component.ImageActionControl
public class ImageActionControl
An image component that is also an action control.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.guiseframework.component.AbstractImageComponent |
|---|
AbstractImageComponent.DefaultTransferable |
| Nested classes/interfaces inherited from class com.guiseframework.component.AbstractComponent |
|---|
AbstractComponent.AbstractFlyoverFrameStrategy<S extends Component>, AbstractComponent.AbstractFlyoverStrategy<S extends Component>, AbstractComponent.DefaultFlyoverStrategy<S extends Component> |
| Nested classes/interfaces inherited from interface com.guiseframework.component.Control |
|---|
Control.Status |
| Nested classes/interfaces inherited from interface com.guiseframework.component.Component |
|---|
Component.FlyoverStrategy<S extends Component> |
| Field Summary |
|---|
| Fields inherited from class com.guiseframework.component.AbstractImageComponent |
|---|
DEFAULT_EXPORT_STRATEGY |
| Fields inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS |
| Fields inherited from interface com.guiseframework.component.ActionControl |
|---|
ROLLOVER_PROPERTY |
| Fields inherited from interface com.guiseframework.component.Control |
|---|
STATUS_PROPERTY |
| Fields inherited from interface com.guiseframework.component.Component |
|---|
BOOKMARK_ENABLED_PROPERTY, CONSTRAINTS_PROPERTY, DRAG_ENABLED_PROPERTY, DROP_ENABLED_PROPERTY, FLYOVER_ENABLED_PROPERTY, FLYOVER_STRATEGY_PROPERTY, INPUT_STRATEGY_PROPERTY, NAME_PROPERTY, NOTIFICATION_PROPERTY, ORIENTATION_PROPERTY, THEME_APPLIED_PROPERTY, VALID_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Displayable |
|---|
DISPLAYED_PROPERTY |
| Fields inherited from interface com.guiseframework.model.InfoModel |
|---|
DESCRIPTION_CONTENT_TYPE_PROPERTY, DESCRIPTION_PROPERTY, INFO_CONTENT_TYPE_PROPERTY, INFO_PROPERTY |
| Fields inherited from interface com.guiseframework.model.LabelModel |
|---|
GLYPH_URI_PROPERTY, LABEL_CONTENT_TYPE_PROPERTY, LABEL_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Model |
|---|
PLAIN_TEXT_CONTENT_TYPE, XHTML_CONTENT_TYPE, XHTML_FRAGMENT_CONTENT_TYPE |
| Fields inherited from interface com.guiseframework.model.Enableable |
|---|
ENABLED_PROPERTY |
| Fields inherited from interface com.guiseframework.model.ImageModel |
|---|
IMAGE_URI_PROPERTY |
| Constructor Summary | |
|---|---|
ImageActionControl()
Default constructor. |
|
ImageActionControl(ActionPrototype actionPrototype)
Prototype constructor. |
|
ImageActionControl(ImageModel imageModel)
Image model constructor. |
|
ImageActionControl(InfoModel infoModel,
ImageModel imageModel,
ActionModel actionModel,
Enableable enableable)
Info model, image model, action model, and enableable object constructor. |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener actionListener)
Adds an action listener. |
protected Control.Status |
determineStatus()
Checks the user input status of the control. |
protected void |
fireActionPerformed(ActionEvent actionEvent)
Fires a given action event to all registered action listeners. |
protected void |
fireActionPerformed(int force,
int option)
Fires an action event to all registered action listeners. |
java.lang.Iterable<ActionListener> |
getActionListeners()
|
protected ActionModel |
getActionModel()
|
protected Enableable |
getEnableable()
|
Control.Status |
getStatus()
|
boolean |
isEnabled()
|
boolean |
isRollover()
|
void |
performAction()
Performs the action with default force and default option. |
void |
performAction(int force,
int option)
Performs the action with the given force and option. |
void |
removeActionListener(ActionListener actionListener)
Removes an action listener. |
void |
reset()
Resets the control to its default value. |
void |
setEnabled(boolean newEnabled)
Sets whether the control is enabled and and can receive user input. |
void |
setNotification(Notification newNotification)
Sets the component notification. |
void |
setRollover(boolean newRollover)
Sets whether the component is in a rollover state. |
protected void |
setStatus(Control.Status newStatus)
Sets the status of the current user input. |
protected void |
updateStatus()
Rechecks user input status of this component, and updates the status. |
protected void |
updateValid()
Rechecks user input validity of this component and all child components, and updates the valid state. |
| Methods inherited from class com.guiseframework.component.AbstractImageComponent |
|---|
getImageModel, getImageURI, setImageURI |
| Methods inherited from class com.guiseframework.event.GuiseBoundPropertyObject |
|---|
getSession |
| Methods inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.guiseframework.platform.DepictedObject |
|---|
depict, getDepictID, getSession, processEvent |
| Methods inherited from interface com.guiseframework.model.InfoModel |
|---|
getDescription, getDescriptionContentType, getInfo, getInfoContentType, setDescription, setDescriptionContentType, setInfo, setInfoContentType |
| Methods inherited from interface com.guiseframework.model.LabelModel |
|---|
getGlyphURI, getLabel, getLabelContentType, setGlyphURI, setLabel, setLabelContentType |
| Methods inherited from interface com.globalmentor.beans.PropertyBindable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface com.globalmentor.beans.PropertyConstrainable |
|---|
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, hasVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener |
| Constructor Detail |
|---|
public ImageActionControl()
public ImageActionControl(ImageModel imageModel)
imageModel - The component image model.
public ImageActionControl(InfoModel infoModel,
ImageModel imageModel,
ActionModel actionModel,
Enableable enableable)
infoModel - The component info model.imageModel - The component image model.actionModel - The component action model.enableable - The enableable object in which to store enabled status.
java.lang.NullPointerException - if the given info model, image model, action model, and/or enableable object is null.public ImageActionControl(ActionPrototype actionPrototype)
actionPrototype - The prototype on which this component should be based.
java.lang.NullPointerException - if the given prototype is null.| Method Detail |
|---|
protected ActionModel getActionModel()
protected Enableable getEnableable()
public boolean isRollover()
isRollover in interface ActionControlpublic void setRollover(boolean newRollover)
Boolean.
setRollover in interface ActionControlnewRollover - true if the component should be in a rollover state, else false.ActionControl.ROLLOVER_PROPERTYpublic Control.Status getStatus()
getStatus in interface Controlnull if there is no status to report.protected void setStatus(Control.Status newStatus)
newStatus - The new status of the current user input, or null if there is no status to report.Control.STATUS_PROPERTYprotected void updateStatus()
setStatus(Control.Status)protected Control.Status determineStatus()
Notification.Severity#WARNING, the status is determined to be Status#WARNING.
If the component has a notification of Notification.Severity#ERROR, the status is determined to be Status#ERROR.
Otherwise, this version returns null.
If the control is disabled null is returned.
protected void updateValid()
updateValid in class AbstractComponentAbstractComponent.setValid(boolean),
updateStatus()public void setNotification(Notification newNotification)
setNotification in interface ComponentsetNotification in class AbstractComponentnewNotification - The notification for the component, or null if no notification is associated with this component.Component.NOTIFICATION_PROPERTYpublic void reset()
reset in interface ControlsetNotification(Notification)public void addActionListener(ActionListener actionListener)
addActionListener in interface ActionListenableactionListener - The action listener to add.public void removeActionListener(ActionListener actionListener)
removeActionListener in interface ActionListenableactionListener - The action listener to remove.public java.lang.Iterable<ActionListener> getActionListeners()
getActionListeners in interface ActionModelpublic void performAction()
ActionEvent is fired to all registered ActionListeners.
This method delegates to performAction(int, int).
performAction in interface ActionModel
public void performAction(int force,
int option)
ActionEvent is fired to all registered ActionListeners.
performAction in interface ActionModelforce - The zero-based force, such as 0 for no force or 1 for an action initiated by from a mouse single click.option - The zero-based option, such as 0 for an event initiated by a mouse left button click or 1 for an event initiaged by a mouse right button click.
protected void fireActionPerformed(int force,
int option)
fireActionPerformed(ActionEvent).
force - The zero-based force, such as 0 for no force or 1 for an action initiated by from a mouse single click.option - The zero-based option, such as 0 for an event initiated by a mouse left button click or 1 for an event initiaged by a mouse right button click.ActionListener,
ActionEventprotected void fireActionPerformed(ActionEvent actionEvent)
actionEvent - The action event to fire.public boolean isEnabled()
isEnabled in interface Enableablepublic void setEnabled(boolean newEnabled)
Boolean.
setEnabled in interface EnableablenewEnabled - true if the control should indicate and accept user input.Enableable.ENABLED_PROPERTY
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||