Class ArchetypeAttribute
- java.lang.Object
-
- net.sf.gridarta.model.archetypetype.ArchetypeAttribute
-
- Direct Known Subclasses:
AbstractArchetypeAttributeInvSpell,AbstractArchetypeAttributeList,AbstractArchetypeAttributeSpell,ArchetypeAttributeAnimationName,ArchetypeAttributeBitmask,ArchetypeAttributeBool,ArchetypeAttributeBoolSpec,ArchetypeAttributeFaceName,ArchetypeAttributeFixed,ArchetypeAttributeFloat,ArchetypeAttributeInt,ArchetypeAttributeLong,ArchetypeAttributeMapPath,ArchetypeAttributeScriptFile,ArchetypeAttributeString,ArchetypeAttributeText,ArchetypeAttributeTreasure
public abstract class ArchetypeAttribute extends java.lang.ObjectThis Class contains the data of one archetype attribute.
-
-
Field Summary
Fields Modifier and Type Field Description static intTEXTFIELD_COLUMNSThe width (columns) for input fields like textfields or JChooseBoxes.
-
Constructor Summary
Constructors Modifier Constructor Description protectedArchetypeAttribute(@NotNull java.lang.String archetypeAttributeName, @NotNull java.lang.String attributeName, @NotNull java.lang.String description, int inputLength)Creates a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.StringgetArchetypeAttributeName()Returns the archetype attribute name.@NotNull java.lang.StringgetAttributeName()Returns the user interface attribute name.@NotNull java.lang.StringgetDescription()Returns the attribute's description.intgetInputLength()Returns the input length in characters for text input fields.@NotNull java.lang.StringtoString()abstract voidvisit(@NotNull ArchetypeAttributeVisitor visitor)Calls thevisit()function appropriate for this instance.
-
-
-
Field Detail
-
TEXTFIELD_COLUMNS
public static final int TEXTFIELD_COLUMNS
The width (columns) for input fields like textfields or JChooseBoxes.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ArchetypeAttribute
protected ArchetypeAttribute(@NotNull @NotNull java.lang.String archetypeAttributeName, @NotNull @NotNull java.lang.String attributeName, @NotNull @NotNull java.lang.String description, int inputLength)Creates a new instance.- Parameters:
archetypeAttributeName- the archetype attribute nameattributeName- the user interface attribute namedescription- the attribute's descriptioninputLength- the input length in characters for text input fields
-
-
Method Detail
-
getArchetypeAttributeName
@NotNull public @NotNull java.lang.String getArchetypeAttributeName()
Returns the archetype attribute name.- Returns:
- the archetype attribute name
-
getAttributeName
@NotNull public @NotNull java.lang.String getAttributeName()
Returns the user interface attribute name.- Returns:
- the user interface attribute name
-
getDescription
@NotNull public @NotNull java.lang.String getDescription()
Returns the attribute's description.- Returns:
- the attribute's description
-
getInputLength
public int getInputLength()
Returns the input length in characters for text input fields.- Returns:
- the input length
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
visit
public abstract void visit(@NotNull @NotNull ArchetypeAttributeVisitor visitor)Calls thevisit()function appropriate for this instance.- Parameters:
visitor- the visitor to call
-
-