|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.generic.description.DescriptionObjectImpl
org.openbp.common.generic.description.DisplayObjectImpl
public class DisplayObjectImpl
An object that has a name, a display name and a description.
\bNote that this object does not support localization currently!\b
\bThe 'locale' parameter of all methods is ignored.\b
| Field Summary |
|---|
| Fields inherited from interface org.openbp.common.generic.Copyable |
|---|
COPY_DEEP, COPY_FIRST_LEVEL, COPY_SHALLOW |
| Constructor Summary | |
|---|---|
DisplayObjectImpl()
Default constructor. |
|
DisplayObjectImpl(java.lang.String name)
Value constructor. |
|
DisplayObjectImpl(java.lang.String name,
java.lang.String displayName,
java.lang.String description)
Value constructor. |
|
| Method Summary | |
|---|---|
void |
copyFrom(java.lang.Object source,
int copyMode)
Copies the values of the source object to this object. |
java.lang.String |
getDisplayName()
Gets the default display name of this object. |
java.lang.String |
getDisplayText()
Gets text that can be used to display this object. |
void |
setDisplayName(java.lang.String displayName)
Sets the default display name of this object. |
| Methods inherited from class org.openbp.common.generic.description.DescriptionObjectImpl |
|---|
clone, compareTo, getDescription, getDescriptionEscape, getDescriptionText, getName, setDescription, setDescriptionEscape, setName, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openbp.common.generic.description.DescriptionObject |
|---|
clone, getDescription, getDescriptionText, getName, setDescription, setName |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public DisplayObjectImpl()
public DisplayObjectImpl(java.lang.String name)
name - The internal name of the object
public DisplayObjectImpl(java.lang.String name,
java.lang.String displayName,
java.lang.String description)
name - The internal name of the objectdisplayName - Display name of this objectdescription - Description of this object| Method Detail |
|---|
public void copyFrom(java.lang.Object source,
int copyMode)
throws java.lang.CloneNotSupportedException
copyFrom in interface CopyablecopyFrom in class DescriptionObjectImplsource - The source object. Must be of the same type as this object.copyMode - Determines if a deep copy, a first level copy or a shallow copy is to be
performed. See the constants of the org.openbp.common.generic.description.Copyable class.
java.lang.CloneNotSupportedException - If the cloning of one of the contained objects failedpublic java.lang.String getDisplayName()
getDisplayName in interface DisplayObjectpublic void setDisplayName(java.lang.String displayName)
setDisplayName in interface DisplayObjectpublic java.lang.String getDisplayText()
setDisplayName(java.lang.String)) or the regular name
(DescriptionObject.setName(String)) of the object itself.
getDisplayText in interface DescriptionObjectgetDisplayText in interface DisplayablegetDisplayText in class DescriptionObjectImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||