public class Property
extends Name
implements java.io.Serializable
Property
contains description of the property of an object,
which can be a JReport object such as report, page, component, and so on.Modifier and Type | Field and Description |
---|---|
static int |
STRING_TYPE_FONT |
static int |
STRING_TYPE_STRING |
static int |
STRING_TYPE_STRINGLIST |
Constructor and Description |
---|
Property(java.lang.String name)
Creates a new
Property instance by the specified name. |
Modifier and Type | Method and Description |
---|---|
boolean |
canAuto() |
boolean |
canChangedByOthers()
Returns whether the property could be changed by others,
for example changed by formulas.
|
ChangeByOtherInfo |
getCurrentOtherInfo() |
java.lang.String |
getDefaultValue()
Returns the default value of the property.
|
java.util.List<ChangeByOtherInfo> |
getOtherInfos() |
int |
getStringType()
Returns the string type when this property type is a string.
|
java.lang.String |
getValue()
Returns the value of the property.
|
int |
getValueIndex()
Returns the index of the current value in value list.
|
java.lang.String[] |
getValues()
Returns the value list of this property.
|
java.lang.String[] |
getValuesForDisplay()
Returns the property value list used for display.
|
boolean |
isAuto() |
boolean |
isChangedByOthers()
Returns whether the property has been changed by others.
|
boolean |
isDisabled()
Returns whether the property is disabled.
|
boolean |
isSupportColorAlpha() |
void |
setAuto(boolean isAuto) |
void |
setCanAuto(boolean canAuto) |
void |
setCanChangedByOthers(boolean canChange) |
void |
setCurrentOtherInfo(ChangeByOtherInfo currentOtherInfo) |
void |
setDefaultValue(java.lang.String defValue) |
void |
setDisabled(boolean isDisable) |
void |
setIsChangedByOthers(boolean isChange) |
void |
setOtherInfos(java.util.List<ChangeByOtherInfo> otherInfos) |
void |
setStringType(int stringType) |
void |
setSupportColorAlpha(boolean supportColorAlpha) |
void |
setValue(java.lang.String value) |
void |
setValueIndex(int index) |
void |
setValues(java.lang.String[] values) |
void |
setValuesForDisplay(java.lang.String[] dvalues) |
public static final transient int STRING_TYPE_STRING
public static final transient int STRING_TYPE_FONT
public static final transient int STRING_TYPE_STRINGLIST
public Property(java.lang.String name)
Property
instance by the specified name.name
- A property name string.public java.lang.String getValue()
public void setValue(java.lang.String value)
public java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String defValue)
public int getValueIndex()
public void setValueIndex(int index)
public java.lang.String[] getValues()
null
if this property does not have a value list.public void setValues(java.lang.String[] values)
public java.lang.String[] getValuesForDisplay()
null
if this property does not have a value list.public void setValuesForDisplay(java.lang.String[] dvalues)
public boolean canChangedByOthers()
public void setCanChangedByOthers(boolean canChange)
public boolean isChangedByOthers()
canChangedByOthers();
public void setIsChangedByOthers(boolean isChange)
public boolean isDisabled()
public void setDisabled(boolean isDisable)
public int getStringType()
STRING_TYPE_STRING
STRING_TYPE_FONT
STRING_TYPE_STRINGLIST
public void setStringType(int stringType)
public ChangeByOtherInfo getCurrentOtherInfo()
public void setCurrentOtherInfo(ChangeByOtherInfo currentOtherInfo)
public java.util.List<ChangeByOtherInfo> getOtherInfos()
public void setOtherInfos(java.util.List<ChangeByOtherInfo> otherInfos)
public boolean isAuto()
public void setAuto(boolean isAuto)
public boolean canAuto()
public void setCanAuto(boolean canAuto)
public boolean isSupportColorAlpha()
public void setSupportColorAlpha(boolean supportColorAlpha)