public class BaseFieldAttributes<T> extends Object implements FieldAttributes<T>
Fields.
All the fields of a Field except its value.| Constructor and Description |
|---|
BaseFieldAttributes(FieldAttributes<T> other,
boolean nullable)
Create a new BaseFieldAttributes based upon another, overriding its nullability.
|
BaseFieldAttributes(FieldAttributes<T> other,
PoemType type)
Create a new BaseFieldAttributes based upon another, but overriding its type.
|
BaseFieldAttributes(FieldAttributes<T> other,
String name)
Create a new BaseFieldAttributes based upon another, overriding its name.
|
BaseFieldAttributes(FieldAttributes<T> other,
String name,
String description)
Allow the description to vary as well.
|
BaseFieldAttributes(String name,
PoemType<T> type)
Convenience constructor.
|
BaseFieldAttributes(String name,
String displayName,
String description,
PoemType<T> type,
int width,
int height,
String renderInfo,
boolean indexed,
boolean userEditable,
boolean userCreateable)
Full Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getDisplayName() |
int |
getHeight() |
boolean |
getIndexed() |
String |
getName() |
String |
getRenderInfo() |
PoemType<T> |
getType() |
boolean |
getUserCreateable() |
boolean |
getUserEditable() |
int |
getWidth() |
public BaseFieldAttributes(String name, String displayName, String description, PoemType<T> type, int width, int height, String renderInfo, boolean indexed, boolean userEditable, boolean userCreateable)
name - simple namedisplayName - human readable namedescription - a short descriptiontype - the PoemType of the new Fieldwidth - how wide input widgets should beheight - how high input widgets should berenderInfo - the name of a special templet to render this fieldindexed - whether the Field is indexed.userEditable - whether users should be able to modify the valueuserCreateable - whether users should be allowed to create new instancespublic BaseFieldAttributes(String name, PoemType<T> type)
name - used as the name and, capitalised, the display nametype - the Poem datatypepublic BaseFieldAttributes(FieldAttributes<T> other, PoemType type)
other - the FieldAttributes to clonetype - allows overriding of typepublic BaseFieldAttributes(FieldAttributes<T> other, String name)
other - the FieldAttributes to clonename - the new namepublic BaseFieldAttributes(FieldAttributes<T> other, String name, String description)
other - the FieldAttributes to clonename - the new namedescription - the new descriptionpublic BaseFieldAttributes(FieldAttributes<T> other, boolean nullable)
other - the FieldAttributes to clonenullable - the new nullabilitypublic String getName()
getName in interface FieldAttributes<T>public String getDisplayName()
getDisplayName in interface FieldAttributes<T>public String getDescription()
getDescription in interface FieldAttributes<T>public PoemType<T> getType()
getType in interface FieldAttributes<T>public boolean getIndexed()
getIndexed in interface FieldAttributes<T>public boolean getUserEditable()
getUserEditable in interface FieldAttributes<T>public boolean getUserCreateable()
getUserCreateable in interface FieldAttributes<T>public int getWidth()
getWidth in interface FieldAttributes<T>public int getHeight()
getHeight in interface FieldAttributes<T>public String getRenderInfo()
getRenderInfo in interface FieldAttributes<T>Copyright © 2000–2021 PanEris. All rights reserved.