|
JFormDesigner 5.0.4 Runtime API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jformdesigner.model.FormObject
public abstract class FormObject
Abstract base class that stores property values.
Field Summary | |
---|---|
static java.lang.Object |
NULL_VALUE
A property value that explicitly sets a property to null . |
Method Summary | |
---|---|
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
getProperties()
Returns an iterator over the properties in this object. |
java.lang.Object |
getProperty(java.lang.String name)
Returns the value of a property (or null if inexistent). |
java.lang.Object |
getProperty(java.lang.String name,
java.lang.Object def)
Returns the value of a property (or def if inexistent). |
boolean |
getPropertyBoolean(java.lang.String name)
Convenience method to get a boolean property value. |
boolean |
getPropertyBoolean(java.lang.String name,
boolean def)
Convenience method to get a boolean property value. |
int |
getPropertyCount()
Returns the number of properties in this object. |
double |
getPropertyDouble(java.lang.String name)
Convenience method to get a double property value. |
double |
getPropertyDouble(java.lang.String name,
double def)
Convenience method to get a double property value. |
int |
getPropertyInt(java.lang.String name)
Convenience method to get an integer property value. |
int |
getPropertyInt(java.lang.String name,
int def)
Convenience method to get an integer property value. |
java.util.Iterator<java.lang.String> |
getPropertyNames()
Returns an iterator over the property names in this object. |
java.lang.String |
getPropertyString(java.lang.String name)
Convenience method to get a String property value. |
java.lang.String |
getPropertyString(java.lang.String name,
java.lang.String def)
Convenience method to get a String property value. |
int |
getReferenceCount()
For internal use only. |
java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
properties()
Returns an iterator over the properties in this object. |
java.lang.Iterable<java.lang.String> |
propertyNames()
Returns an iterator over the property names in this object. |
void |
setProperty(java.lang.String name,
int index,
java.lang.Object value)
Sets the value of a property. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets the value of a property. |
void |
setProperty(java.lang.String name,
java.lang.Object value,
java.lang.Object def)
Sets the value of a property. |
void |
setPropertyBoolean(java.lang.String name,
boolean value)
Convenience method to set a boolean property value. |
void |
setPropertyBoolean(java.lang.String name,
boolean value,
boolean def)
Convenience method to set a boolean property value. |
void |
setPropertyDouble(java.lang.String name,
double value)
Convenience method to set a double property value. |
void |
setPropertyDouble(java.lang.String name,
double value,
double def)
Convenience method to set a double property value. |
void |
setPropertyInt(java.lang.String name,
int value)
Convenience method to set an integer property value. |
void |
setPropertyInt(java.lang.String name,
int value,
int def)
Convenience method to set an integer property value. |
void |
setPropertyString(java.lang.String name,
java.lang.String value)
Convenience method to set an String property value. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Object NULL_VALUE
null
.
Example:
FormComponent label = new FormComponent("javax.swing.JLabel"); label.setProperty("text", FormComponent.NULL_VALUE);The same in Swing:
JLabel label = new JLabel(); label.setText(null);
Method Detail |
---|
public java.lang.Object getProperty(java.lang.String name)
null
if inexistent).
public java.lang.Object getProperty(java.lang.String name, java.lang.Object def)
def
if inexistent).
public void setProperty(java.lang.String name, java.lang.Object value)
public void setProperty(java.lang.String name, int index, java.lang.Object value)
public void setProperty(java.lang.String name, java.lang.Object value, java.lang.Object def)
def
.
public java.lang.String getPropertyString(java.lang.String name)
null
if the property is not a String or does not exist.
public java.lang.String getPropertyString(java.lang.String name, java.lang.String def)
def
if the property is not a String or does not exist.
public void setPropertyString(java.lang.String name, java.lang.String value)
public int getPropertyInt(java.lang.String name)
0
if the property is not an integer or does not exist.
public int getPropertyInt(java.lang.String name, int def)
def
if the property is not an integer or does not exist.
public void setPropertyInt(java.lang.String name, int value)
public void setPropertyInt(java.lang.String name, int value, int def)
def
.
public double getPropertyDouble(java.lang.String name)
0
if the property is not an double or does not exist.
public double getPropertyDouble(java.lang.String name, double def)
def
if the property is not an double or does not exist.
public void setPropertyDouble(java.lang.String name, double value)
public void setPropertyDouble(java.lang.String name, double value, double def)
def
.
public boolean getPropertyBoolean(java.lang.String name)
0
if the property is not an boolean or does not exist.
public boolean getPropertyBoolean(java.lang.String name, boolean def)
def
if the property is not an boolean or does not exist.
public void setPropertyBoolean(java.lang.String name, boolean value)
public void setPropertyBoolean(java.lang.String name, boolean value, boolean def)
def
.
public java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.Object>> properties()
Iterator.next()
returns an java.util.Map.Entry
where the key is the property name and the value is the property value.
Note: This method is not available in the Java 1.4 version of this library.
public java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.Object>> getProperties()
Iterator.next()
returns an java.util.Map.Entry
where the key is the property name and the value is the property value.
public java.lang.Iterable<java.lang.String> propertyNames()
Iterator.next()
returns a String
.
Note: This method is not available in the Java 1.4 version of this library.
public java.util.Iterator<java.lang.String> getPropertyNames()
Iterator.next()
returns a String
.
public int getPropertyCount()
public int getReferenceCount()
public java.lang.String toString()
toString
in class java.lang.Object
|
JFormDesigner 5.0.4 Runtime API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |