|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.ui.framework.java.Capabilities
public class Capabilities extends Object
Defines the capabilities of a DataBean by encapsulating
a list of unsupported attributes. Clients of the DataBean
can query its associated Capabilities object to learn
whether a particular attribute is supported.
A list of instructions, or HandlerTasks, may optionally
be associated with each unsupported attribute. These instructions
are carried out by the UI framework. Typically they involve disabling
or removing certain UI components from a panel.
DataBean,
HandlerTask| Constructor and Description |
|---|
Capabilities()
Constructs a Capabilities object. |
| Modifier and Type | Method and Description |
|---|---|
HandlerTask[] |
getHandlerTasksFor(String attribute)
Returns a list of HandlerTasks associated with
an unsupported attribute. |
boolean |
isCapable(String attribute)
Determines whether the DataBean associated with this object
supports a particular attribute. |
void |
setCapable(String attribute)
Sets an indication that a particular attribute is supported by the DataBean associated with this object. |
void |
setNotCapable(String attribute,
HandlerTask[] handlerTasks)
Sets an indication that a particular attribute is not supported by the DataBean associated with this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Capabilities()
Capabilities object.
| Method Detail |
|---|
public void setNotCapable(String attribute,
HandlerTask[] handlerTasks)
DataBean associated with this object. Optionally associates a
list of HandlerTasks with the attribute. The HandlerTasks
indicate which panel components are affected by the unsupported attribute,
and what action should be taken on them.
attribute - the attribute for which the indication is to be sethandlerTasks - an array of HandlerTask objects (may be null)setCapable(java.lang.String),
HandlerTaskpublic void setCapable(String attribute)
DataBean associated with this object.
attribute - the attribute for which the indication is to be setsetNotCapable(java.lang.String, com.ibm.as400.ui.framework.java.HandlerTask[])public boolean isCapable(String attribute)
DataBean associated with this object
supports a particular attribute.
attribute - the attribute to be checkedDataBean supports the specified attribute; false otherwise.public HandlerTask[] getHandlerTasksFor(String attribute)
HandlerTasks associated with
an unsupported attribute. If the attribute is supported, or if there are
no HandlerTasks associated with the attribute, this method
returns an array of length 0.
attribute - the attribute for which handler tasks are to be returnedHandlerTasksHandlerTask
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||