|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOperationPM
The IOperationPM
represents a PresentationModel
for view
components that can invoke an operation, like buttons and menu items.
Method Summary | |
---|---|
void |
check()
Checks whether this operation is enabled. |
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. |
Validator |
getValidator()
Returns the Validator of this object. |
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 icon)
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 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 |
Method Detail |
---|
boolean execute() throws java.lang.Throwable
true
if this operation has been executed successfully
java.lang.Throwable
boolean isEnabled()
true
if this operation can be executed, otherwise
false
.void check() throws java.lang.IllegalStateException
IllegalStateException
.
java.lang.IllegalStateException
- if this operation is not enabledjava.lang.String getDescription()
A view displays this text usually in the form of a tooltip.
void setDescription(java.lang.String description)
description
- getDescription()
Validator getValidator()
Validator
of this object. The validator is
responsible for creating the ValidationState
of this object by
evaluating a specific set of ValidationRule
s.
getValidator
in interface Validatable
Validator
of this objectjava.lang.String getTitle()
void setTitle(java.lang.String title)
title
- getTitle()
javax.swing.Icon getIcon()
void setIcon(javax.swing.Icon icon)
icon
- void setIconUrl(java.net.URL url)
URL
pointing to the icon of this operation.
url
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |