|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.as400.ui.util.MessagesBean
public class MessagesBean extends Object implements DataBean
Modifier and Type | Field and Description |
---|---|
static int |
DETAIL_AS400MESSAGE
|
static int |
DETAIL_HTML
|
static int |
DETAIL_NONE
|
static int |
DETAIL_TEXT
|
static int |
DETAIL_URL
|
Constructor and Description |
---|
MessagesBean()
|
Modifier and Type | Method and Description |
---|---|
void |
addMessage(AS400Message AS400msg)
|
void |
addMessage(String strMessage,
String strID,
String strTextDetails)
|
void |
addMessage(String strMessage,
String strID,
String strHTMLDetails,
String strAnchor)
|
void |
addMessage(String strMessage,
String strID,
URL urlDetails)
|
void |
addMessages(AS400Message[] AS400msgList)
|
Capabilities |
getCapabilities()
Returns a Capabilities object which identifies
the attributes that aren't supported by this DataBean . |
String |
getHelpSet()
Gets current help set for all HTML messages. |
Job |
getJob()
Gets the job used to display the job log. |
String |
getMessage()
|
int |
getMessageCount()
|
ItemDescriptor[] |
getMessagesList()
|
String[] |
getMessagesSelection()
|
String |
getSelectedMessage()
|
String |
getSelectedMessageAnchor()
|
String |
getSelectedMessageDetail()
|
int |
getSelectedMessageDetailType()
|
String |
getSelectedMessageID()
|
URL |
getSelectedMessageURL()
|
int |
getSelection()
|
AS400 |
getSystem()
|
boolean |
hasAnyMessageDetail()
|
boolean |
isSelectedMessageAS400()
|
void |
load()
Initializes this object. |
void |
save()
Saves all changes that have been applied to this object via its accessor methods. |
boolean |
selectedMessageHasDetail()
|
void |
setHelpSet(String helpSet)
Sets the help set used for any messages shown as HTML help. |
void |
setJob(Job job)
Sets the job used to display the job log. |
void |
setMessage(String message)
|
void |
setMessagesList(ItemDescriptor[] items)
|
void |
setMessagesSelection(String[] selection)
|
void |
setSelectedMessage(String text)
|
void |
setSelectedMessageID(String text)
|
void |
setSelection(int iSelection)
|
void |
setSystem(AS400 as400)
|
void |
verifyChanges()
Validates any changes that have been applied to this object via its accessor methods. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DETAIL_NONE
public static final int DETAIL_TEXT
public static final int DETAIL_URL
public static final int DETAIL_HTML
public static final int DETAIL_AS400MESSAGE
Constructor Detail |
---|
public MessagesBean()
Method Detail |
---|
public void load()
DataBean
This method should be called prior to handing the DataBean
off to the UI Framework. On return from this method the bean
should be in a state where it is ready to return data on any of
its accessor methods.
load
in interface DataBean
public void verifyChanges()
DataBean
This method is called just prior to save
to give
the receiver an opportunity to verify that its data is consistent
with any changes made to other DataBean
s associated
with a given panel. If an inconsistency is discovered the
DataBean
should throw an exception. This will
prevent the changes from being committed.
verifyChanges
in interface DataBean
public void save()
DataBean
save
in interface DataBean
public Capabilities getCapabilities()
DataBean
Capabilities
object which identifies
the attributes that aren't supported by this DataBean
.
There are many reasons why a DataBean
might not support
a given attribute. For example:
The Capabilities
object may provide a list
of instructions, or HandlerTask
s, which the
UI framework is to perform. Typically these involve disabling
or removing certain UI components from a panel.
getCapabilities
in interface DataBean
Capabilities
object which reflects this object's capabilitiesCapabilities
public void setSelection(int iSelection)
public int getSelection()
public void setSystem(AS400 as400)
public AS400 getSystem()
public ItemDescriptor[] getMessagesList()
public void setMessagesList(ItemDescriptor[] items)
public String[] getMessagesSelection()
public void setMessagesSelection(String[] selection)
public String getSelectedMessage()
public void setSelectedMessage(String text)
public String getSelectedMessageID()
public boolean isSelectedMessageAS400()
public boolean selectedMessageHasDetail()
public void setSelectedMessageID(String text)
public String getSelectedMessageDetail()
public URL getSelectedMessageURL()
public String getSelectedMessageAnchor()
public int getSelectedMessageDetailType()
public int getMessageCount()
public String getMessage()
public void setMessage(String message)
public void setJob(Job job)
job
- A com.ibm.as400.access.Job objectpublic Job getJob()
public void setHelpSet(String helpSet)
helpSet
- helpset contents in a stringpublic String getHelpSet()
public void addMessage(String strMessage, String strID, String strHTMLDetails, String strAnchor)
public void addMessage(String strMessage, String strID, URL urlDetails)
public void addMessage(String strMessage, String strID, String strTextDetails)
public void addMessage(AS400Message AS400msg)
public void addMessages(AS400Message[] AS400msgList)
public boolean hasAnyMessageDetail()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |