|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
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 HandlerTask
s, 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 HandlerTask s 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 HandlerTask
s with the attribute. The HandlerTask
s
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)
,
HandlerTask
public 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)
HandlerTask
s associated with
an unsupported attribute. If the attribute is supported, or if there are
no HandlerTask
s associated with the attribute, this method
returns an array of length 0.
attribute
- the attribute for which handler tasks are to be returnedHandlerTask
sHandlerTask
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |