|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beanfabrics.AbstractBean
org.beanfabrics.ValidatableBean
org.beanfabrics.model.AbstractPM
org.beanfabrics.model.AbstractOperationPM
public abstract class AbstractOperationPM
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.beanfabrics.model.AbstractPM |
---|
AbstractPM.PropertiesValidationRule |
Field Summary |
---|
Fields inherited from class org.beanfabrics.model.AbstractPM |
---|
KEY_MESSAGE_ONE_OR_MORE_INVALID |
Constructor Summary | |
---|---|
protected |
AbstractOperationPM()
Constructs a new AbstractOperationPM . |
Method Summary | |
---|---|
void |
check()
Checks whether this operation is enabled. |
abstract boolean |
execute()
Executes this operation. |
java.lang.String |
getDescription()
Returns the description of this operation. |
javax.swing.Icon |
getIcon()
Returns the Icon of this operation. |
java.lang.String |
getTitle()
Returns the title of this operation. |
boolean |
isEnabled()
Returns whether this operation is enabled. |
void |
setDescription(java.lang.String description)
Sets the description of this operation. |
void |
setIcon(javax.swing.Icon newIcon)
Sets the icon of this operation. |
void |
setIconUrl(java.net.URL url)
Sets the URL pointing to the icon of this operation. |
void |
setTitle(java.lang.String title)
Sets the title of this operation. |
Methods inherited from class org.beanfabrics.model.AbstractPM |
---|
getComparable, getContext, getSupportMap, revalidateProperties |
Methods inherited from class org.beanfabrics.ValidatableBean |
---|
getValidationState, getValidator, isValid, revalidate, setValidationState |
Methods inherited from class org.beanfabrics.AbstractBean |
---|
addPropertyChangeListener, addPropertyChangeListener, equals, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.beanfabrics.model.IOperationPM |
---|
getValidator |
Methods inherited from interface org.beanfabrics.Bean |
---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface org.beanfabrics.validation.Validatable |
---|
getValidationState, isValid, revalidate |
Methods inherited from interface org.beanfabrics.support.Supportable |
---|
getSupportMap |
Methods inherited from interface org.beanfabrics.context.ContextOwner |
---|
getContext |
Methods inherited from interface org.beanfabrics.HasComparable |
---|
getComparable |
Constructor Detail |
---|
protected AbstractOperationPM()
AbstractOperationPM
.
Method Detail |
---|
public void setIcon(javax.swing.Icon newIcon)
setIcon
in interface IOperationPM
public javax.swing.Icon getIcon()
getIcon
in interface IOperationPM
public void setIconUrl(java.net.URL url)
URL
pointing to the icon of this operation.
setIconUrl
in interface IOperationPM
public java.lang.String getTitle()
getTitle
in interface IOperationPM
public void setTitle(java.lang.String title)
setTitle
in interface IOperationPM
IOperationPM.getTitle()
public java.lang.String getDescription()
A view displays this text usually in the form of a tooltip.
getDescription
in interface IOperationPM
public void setDescription(java.lang.String description)
setDescription
in interface IOperationPM
IOperationPM.getDescription()
public abstract boolean execute() throws java.lang.Throwable
execute
in interface IOperationPM
true
if this operation has been executed successfully
java.lang.Throwable
public boolean isEnabled()
isEnabled
in interface IOperationPM
true
if this operation can be executed, otherwise
false
.public void check() throws java.lang.IllegalStateException
IllegalStateException
.
check
in interface IOperationPM
java.lang.IllegalStateException
- if this operation is not enabled
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |