public class OdsxAttributeEditorPaneValue extends FwkDialogPaneValue implements java.lang.Cloneable
,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected static java.util.HashMap |
not_editable |
protected static java.lang.Object |
NOT_EDITABLE |
protected static java.lang.Object |
OBLIGATORY |
protected static java.lang.Object |
UNIQUE |
getHt, ident, propertyChange, setHt, version| Constructor and Description |
|---|
OdsxAttributeEditorPaneValue()
The construtor.
|
OdsxAttributeEditorPaneValue(ApplicationElement ae)
The construtor.
|
OdsxAttributeEditorPaneValue(InstanceElement ie)
The construtor.
|
OdsxAttributeEditorPaneValue(java.lang.String ident)
The constructor.
|
OdsxAttributeEditorPaneValue(java.lang.String ident,
ApplicationElement ae)
The constructor.
|
OdsxAttributeEditorPaneValue(java.lang.String ident,
InstanceElement ie)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ApplicationAttribute aa)
Add an application attribute to the value.
|
void |
add(NameValueUnit nvu)
Add a name value unit to the value.
|
void |
clear()
Clear the whole collection of name value units.
|
java.lang.Object |
clone()
Clone the value.
|
void |
fillFrom(ApplicationElement ae)
Fill from ApplicationElement.
|
void |
fillFrom(InstanceElement ie)
Fill from InstanceElement.
|
NameValueUnit |
get(java.lang.String name)
Get a name value unit from the value.
|
java.util.Iterator |
getProperties()
Retrieves a map that holds all property keywords of the pane value.
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Retrieves the property that belongs to the specified property name.
|
java.lang.String |
getUnit(java.lang.String name)
Get a unit.
|
java.lang.String |
getValueAsString(java.lang.String name)
Get a name value as string.
|
static boolean |
isEditable(ApplicationAttribute aa)
Get the editable flag.
|
static boolean |
isEditable(java.lang.String name)
Get the editable flag.
|
boolean |
isObligatory(java.lang.String name)
Get the attribute obligatory flag.
|
boolean |
isUnique(java.lang.String name)
Get the attribute unique flag.
|
static void |
main(java.lang.String[] args)
The Main Body to test the class.
|
NameValueUnit |
remove(NameValueUnit nvu)
Remove a name value unit from the value.
|
NameValueUnit |
remove(java.lang.String name)
Remove a named name value unit from the value.
|
void |
setObligatory(java.lang.String name,
boolean flag)
Set the attribute obligatory.
|
void |
setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
Sets the property that belongs to the specified identifier.
|
void |
setUnique(java.lang.String name,
boolean flag)
Set the attribute unique.
|
int |
size()
Retrieve the size of the attribute array.
|
java.lang.String |
toString()
Get a string presentation of the value.
|
addPropertyChangeListener, addPropertyChangeListener, entrySet, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getIdent, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, getVersion, isPropertyChangeEventSuspended, release, removePropertyChangeListener, removePropertyChangeListener, setIdent, setProperties, setSource, suspendPropertyChangeEventscontainsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, valuesprotected static final java.lang.Object OBLIGATORY
protected static final java.lang.Object UNIQUE
protected static final java.lang.Object NOT_EDITABLE
protected static java.util.HashMap not_editable
public OdsxAttributeEditorPaneValue()
public OdsxAttributeEditorPaneValue(java.lang.String ident)
ident - The ident of the value.ie - The instance element belongs to the value.public OdsxAttributeEditorPaneValue(ApplicationElement ae) throws AoException
ae - an application elementAoExceptionpublic OdsxAttributeEditorPaneValue(java.lang.String ident,
ApplicationElement ae)
throws AoException
ident - The ident of the value.ae - The application element that fills the value.AoExceptionpublic OdsxAttributeEditorPaneValue(InstanceElement ie) throws AoException
ie - an instance elementAoExceptionpublic OdsxAttributeEditorPaneValue(java.lang.String ident,
InstanceElement ie)
throws AoException
ident - The ident of the value.ie - The instance element that fills the value.AoExceptionpublic int size()
size in interface java.util.Mapsize in class java.util.AbstractMappublic void setObligatory(java.lang.String name,
boolean flag)
name - the name of the value that should be obligatory.flag - true if value should be obligatory.public boolean isObligatory(java.lang.String name)
name - the name of the value that should be obligatory.public void setUnique(java.lang.String name,
boolean flag)
name - the name of the value that should be unique.flag - true if value should be unique.public boolean isUnique(java.lang.String name)
name - the name of the value that should be unique.public static boolean isEditable(java.lang.String name)
name - the base element name.public static boolean isEditable(ApplicationAttribute aa)
aa - the application attribute.public void add(NameValueUnit nvu)
This method doesn't make a copy of the name value unit.
nvu - The name value unit.public void add(ApplicationAttribute aa) throws AoException
aa - the application attribute.AoExceptionpublic void fillFrom(ApplicationElement ae) throws AoException
ae - the application element.AoExceptionpublic void fillFrom(InstanceElement ie) throws AoException
ie - the instance element.AoExceptionpublic NameValueUnit get(java.lang.String name)
This method doesn't make a copy of the name value unit.
name - The name of the name value unit.public java.lang.String getValueAsString(java.lang.String name)
name - The name of the name value unit.public java.lang.String getUnit(java.lang.String name)
name - The name of the name value unit.public NameValueUnit remove(NameValueUnit nvu)
nvu - The name value unitpublic NameValueUnit remove(java.lang.String name)
name - The name of the propertypublic void clear()
clear in interface java.util.Mapclear in class java.util.AbstractMappublic java.lang.Object clone()
clone in class java.util.AbstractMappublic void setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
setProperty in interface FwkDialogPaneValueInterfacesetProperty in class FwkDialogPaneValuepropertyName - The name name of the property.propertyValue - The new value of the property.public java.util.Iterator getProperties()
getProperties in interface FwkDialogPaneValueInterfacegetProperties in class FwkDialogPaneValuepublic java.lang.Object getProperty(java.lang.String propertyName)
getProperty in interface FwkDialogPaneValueInterfacegetProperty in class FwkDialogPaneValuepropertyName - The name name of the property.public java.lang.String toString()
toString in class FwkDialogPaneValuepublic static void main(java.lang.String[] args)