public class HistoryProperty
extends java.lang.Object
| Constructor and Description |
|---|
HistoryProperty()
Construct a history property with no values.
|
HistoryProperty(java.lang.String name)
Construct a HistoryProperty.
|
HistoryProperty(java.lang.String name,
java.lang.String description)
Construct a HistoryProperty.
|
HistoryProperty(java.lang.String name,
java.lang.String description,
java.lang.Class type)
Construct a HistoryProperty.
|
HistoryProperty(java.lang.String name,
java.lang.String description,
java.lang.Class type,
java.lang.Object prototype)
Construct a HistoryProperty.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAutoSizeMaximum()
Get the maximum width used by the HistoryComponent when
auto-sizing columns based on prototypes and values.
|
java.util.Comparator |
getComparator()
Set a comparator to be used for this property.
|
java.lang.String |
getDescription()
Get the description.
|
java.lang.String |
getName()
Get the name of this property.
|
int |
getPreferredAlignment()
Get the preferred alignment of this property.
|
java.lang.Object |
getPrototypeValue()
Get a prototype value.
|
java.lang.Class |
getType()
Get the type of this property.
|
float |
getWeight()
Get the column weight of this HistoryProperty.
|
boolean |
isDefault()
Get whether the HistoryProperty is visible by default.
|
void |
setAutoSizeMaximum(int autoSizeMaximum)
Set the maximum width used by the HistoryComponent when
auto-sizing columns based on prototypes and values.
|
void |
setComparator(java.util.Comparator comparator)
Set a comparator to be used for this property.
|
void |
setDefault(boolean isDefault)
Set whether the HistoryProperty is visible by default.
|
void |
setDescription(java.lang.String description)
Set a description for this property.
|
void |
setName(java.lang.String name)
Set the name of this property.
|
void |
setPreferredAlignment(int preferredAlignment)
Set the preferred alignment of this property.
|
void |
setPrototypeValue(java.lang.Object prototypeValue)
Set a prototype value.
|
void |
setType(java.lang.Class type)
Set the type of this property.
|
void |
setWeight(float weight)
Set the column weight of this HistoryProperty.
|
java.lang.String |
toString()
Gets the name.
|
public HistoryProperty()
public HistoryProperty(java.lang.String name)
name - the name of the property.public HistoryProperty(java.lang.String name,
java.lang.String description)
name - the name of the property.description - a description of the property.public HistoryProperty(java.lang.String name,
java.lang.String description,
java.lang.Class type)
name - the name of the property.description - a description of the property.type - the class of the property values.public HistoryProperty(java.lang.String name,
java.lang.String description,
java.lang.Class type,
java.lang.Object prototype)
name - the name of the property.description - a description of the property.type - the class of the property values.prototype - a prototype value.public void setWeight(float weight)
weight - the weight value.public float getWeight()
public void setDefault(boolean isDefault)
isDefault - true if the HistoryProperty is visible.public void setAutoSizeMaximum(int autoSizeMaximum)
autoSizeMaximum - the maximum auto-size widthpublic void setName(java.lang.String name)
name - the name of the property.public java.lang.String getName()
public void setDescription(java.lang.String description)
description - a description.public java.lang.String getDescription()
public boolean isDefault()
true if the HistoryProperty is visible.public int getAutoSizeMaximum()
public void setType(java.lang.Class type)
type - the type of the property.public java.lang.Class getType()
public void setComparator(java.util.Comparator comparator)
comparator - a comparator.public java.util.Comparator getComparator()
public void setPreferredAlignment(int preferredAlignment)
preferredAlignment - one of SwingConstants.LEFT,
SwingConstants.CENTER or SwingConstants.RIGHTpublic int getPreferredAlignment()
public void setPrototypeValue(java.lang.Object prototypeValue)
prototypeValue - a prototype value for this property.public java.lang.Object getPrototypeValue()
public java.lang.String toString()
toString in class java.lang.Object