|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.genuine.resources.MessageResourceItem
A MessageResourceItem
is a wrapper for a
ResourceItem
object that performs checks on the
values of the resource item:
Constructor Summary | |
MessageResourceItem(ResourceItem resourceItem)
Initializes a Message object with the values of a resource item.
|
|
MessageResourceItem(ResourceItem resourceItem,
java.lang.Object[] parameters)
Initializes a Message object with the values of a resource item
and an array of parameters that have to be inserted into the message text. |
Method Summary | |
java.util.List |
getButtonsResourceItems()
Returns a list of ResourceItem objects that has to be used
to add buttons to the message box. |
javax.swing.ImageIcon |
getIcon()
Returns an icon to be shown in the message box. |
java.lang.String |
getText()
Returns the message text into which given parameters are already inserted. |
java.lang.String |
getTitle()
Returns the title of the message box. |
boolean |
isErrorMessage()
Returns true if this message is an error message. |
boolean |
isInfoMessage()
Returns true if this message is an information message. |
boolean |
isStatusMessage()
Returns true if this message is a status message. |
boolean |
isWarningMessage()
Returns true if this message is a warning message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessageResourceItem(ResourceItem resourceItem)
Message
object with the values of a resource item.
All values are checked.
public MessageResourceItem(ResourceItem resourceItem, java.lang.Object[] parameters)
Message
object with the values of a resource item
and an array of parameters that have to be inserted into the message text. See
MessageFormat
for details.
Method Detail |
public boolean isStatusMessage()
public boolean isInfoMessage()
public boolean isWarningMessage()
public boolean isErrorMessage()
public java.lang.String getTitle()
public java.lang.String getText()
public java.util.List getButtonsResourceItems()
ResourceItem
objects that has to be used
to add buttons to the message box. These resource items have to be defined
using the "choices" property. If that property has not been set, the "ok"
resource item is returned.
public javax.swing.ImageIcon getIcon()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |