|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectschmitzm.geotools.feature.FeatureTypeBuilderTableModel.AttributeDefinition
protected class FeatureTypeBuilderTableModel.AttributeDefinition
Defines an Attribute displayed in the table. The advantage of this helper class is that it does not check the consistency of the inputs immediately on the input! This is importend richtig
Field Summary | |
---|---|
protected BooleanInputOption |
autoValue
Checkbox to indicate that the attribute value is generated automatically. |
protected ManualInputOption.Text |
defaultValue
Manual input field for the attribute's default value. |
protected ManualInputOption.Text |
name
Manual input field for the attribute name. |
protected BooleanInputOption |
nillable
Checkbox for the attribute's nillable property. |
protected SelectionInputOption.Combo<Class> |
type
Choice input field for the attribute type. |
Constructor Summary | |
---|---|
FeatureTypeBuilderTableModel.AttributeDefinition()
Creates an empty attribute definition. |
|
FeatureTypeBuilderTableModel.AttributeDefinition(String name,
Class type,
boolean nillable,
boolean autoValue,
Object defaultValue)
Creates a new attribute definition. |
Method Summary | |
---|---|
AttributeDescriptor |
createAttributeType()
Creates an AttributeDescriptor from the definition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ManualInputOption.Text name
protected SelectionInputOption.Combo<Class> type
FeatureTypeBuilderTableModel.ATTR_TYPES
protected ManualInputOption.Text defaultValue
protected BooleanInputOption nillable
protected BooleanInputOption autoValue
Constructor Detail |
---|
public FeatureTypeBuilderTableModel.AttributeDefinition()
public FeatureTypeBuilderTableModel.AttributeDefinition(String name, Class type, boolean nillable, boolean autoValue, Object defaultValue)
createAttributeType()
is called.
name
- name of the attributetype
- value type of the attributenillable
- indicates whether the attribute is mandatorydefaultValue
- default value for the attributeMethod Detail |
---|
public AttributeDescriptor createAttributeType()
AttributeDescriptor
from the definition.
DefaultAttributeType
or GeometricAttributeType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |