Package com.storedobject.core
Class UIFieldMetadata
java.lang.Object
com.storedobject.core.StoredObject
com.storedobject.core.UIFieldMetadata
- All Implemented Interfaces:
Displayable
,StringFiller
,Detail
,HasId
-
Field Summary
Fields inherited from class com.storedobject.core.StoredObject
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static void
int
boolean
int
int
getIntParameter
(int defaultValue, int index) getParameter
(int index) getParameter
(String defaultValue, int index) int
getParameterAsActions
(int defaultValue, boolean developer) Class
<? extends StoredObject> getParameterAsClass
(Class<? extends StoredObject> defaultClass) getStyle()
int
getType()
static String
getTypeValue
(int value) static String[]
boolean
int
getWidth()
boolean
boolean
boolean
isAny()
boolean
isCode()
boolean
boolean
boolean
isDays()
boolean
isDetailOf
(Class<? extends StoredObject> masterClass) Check if the given class is a "master" for this class.boolean
isEmail()
boolean
boolean
boolean
boolean
boolean
isPhone()
boolean
boolean
boolean
isSecret()
boolean
isSerial()
boolean
boolean
boolean
boolean
void
saved()
This method is invoked whenever an instance is saved/deleted/resurrected.void
setCaption
(String caption) void
setDisplayName
(String displayName) void
setEditability
(boolean editability) void
setFieldName
(String fieldName) void
setFieldOrder
(int fieldOrder) void
setGetMethod
(Method getMethod) void
setParameters
(String parameters) void
setSetAllowed
(boolean setAllowed) void
setType
(int type) void
setVisibility
(boolean visibility) void
setWidth
(int width) Display representation of the instance used for human-friendly display.toString()
String representation of the instance.void
This will be invoked by the system whenever the object is saved to the DB.Methods inherited from class com.storedobject.core.StoredObject
addLink, addLink, addLink, addLink, addLink, addLink, addLink, addLink, checkCurrency, checkCurrency, checkForDuplicate, checkForDuplicate, checkTimeZone, checkTransaction, clearObjectLinks, contemporary, copy, copy, count, count, count, count, count, count, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, create, created, delete, delete, delete, deleted, directUpdate, equals, exists, exists, exists, exists, exists, existsFileData, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsMaster, existsMaster, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, family, family, family, fill, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getAttachment, getAttachmentId, getChildren, getDeleted, getDeleted, getExistsCondition, getExistsCondition, getFileData, getFileData, getHistorical, getId, getKeyIndex, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getNotExistsCondition, getNotExistsCondition, getParent, getParent, getParent, getParentId, getParentId, getParentId, getRelated, getRelated, getTransaction, getTransactionId, getTransactionIP, getUnique, getUniqueCondition, hashCode, inserted, isModified, isVirtual, list, list, list, list, list, list, list, list, list, list, list, list, list, listFileData, listFileData, listHistory, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listTree, listTree, listTree, listTree, listViaQuery, listViaQuery, load, load, load, load, loaded, loading, makeNew, makeVirtual, migrate, moduleName, nextVersion, objectLink, objectLink, objectLink, objectLinks, objectLinks, old, person, previousVersion, previousVersion, query, query, query, query, query, query, query, query, query, query, query, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, reload, reload, reloaded, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeReverseLinks, removeReverseLinks, save, save, save, save, save, save, save, save, save, save, save, save, save, save, saving, setMaster, setRawValue, setTransaction, stringify, tableName, timestamp, toCode, transacting, undelete, undelete, undeleted, updated, user, userId, validate, validateChildAttach, validateChildDetach, validateChildUpdate, validateDelete, validateInsert, validateParentAttach, validateParentDetach, validateParentUpdate, validateUndelete, validateUpdate, valueEquals
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.storedobject.core.Detail
copyValuesFrom, getId, getUniqueId, getUniqueValue
-
Constructor Details
-
UIFieldMetadata
public UIFieldMetadata() -
UIFieldMetadata
-
-
Method Details
-
columns
-
browseOrder
-
setGetMethod
-
getMetadata
-
isFieldOrderBuiltIn
public boolean isFieldOrderBuiltIn() -
toString
Description copied from class:StoredObject
String representation of the instance. Mostly used for logging purposes.- Overrides:
toString
in classStoredObject
- Returns:
- String representation of the instance.
-
toDisplay
Description copied from class:StoredObject
Display representation of the instance used for human-friendly display.- Specified by:
toDisplay
in interfaceDisplayable
- Overrides:
toDisplay
in classStoredObject
- Returns:
- Display representation of the instance.
-
setFieldName
-
getFieldName
-
setCaption
-
getCaption
-
setFieldOrder
public void setFieldOrder(int fieldOrder) -
getFieldOrder
-
setType
public void setType(int type) -
getType
public int getType() -
getTypeValues
-
getTypeValue
-
getTypeValue
-
setParameters
-
getParameters
-
setEditability
public void setEditability(boolean editability) -
getEditability
public boolean getEditability() -
setVisibility
public void setVisibility(boolean visibility) -
getVisibility
public boolean getVisibility() -
setWidth
public void setWidth(int width) -
getWidth
-
validateData
Description copied from class:StoredObject
This will be invoked by the system whenever the object is saved to the DB. It will be invoked in all cases, while creating new objects and updating/deleting/un-deleting existing objects. If any exception is raised by this method, the process of saving to the DB will be abandoned.
Note: This method is mainly used to validate the data of all attributes of the object, and it may be used by others for validating the object. For example, front-end data-entry systems can use this method for validating the object.
- Overrides:
validateData
in classStoredObject
- Parameters:
tm
- Current transaction manager.- Throws:
Exception
- If data is invalid.
-
saved
public void saved()Description copied from class:StoredObject
This method is invoked whenever an instance is saved/deleted/resurrected. It can be overridden to take care of any additional actions required by the application.- Overrides:
saved
in classStoredObject
-
isDetailOf
Description copied from interface:Detail
Check if the given class is a "master" for this class. (Must return a consistent value).- Specified by:
isDetailOf
in interfaceDetail
- Parameters:
masterClass
- Class to check.- Returns:
- True if it is a "master" to this detail class. Otherwise, false.
-
getParameterAsActions
public int getParameterAsActions(int defaultValue, boolean developer) -
getParameterAsClass
public Class<? extends StoredObject> getParameterAsClass(Class<? extends StoredObject> defaultClass) -
getIntParameter
public int getIntParameter(int defaultValue, int index) -
getUnit
-
getParameter
-
getParameter
-
setSetAllowed
public void setSetAllowed(boolean setAllowed) -
isSetAllowed
public boolean isSetAllowed() -
isMultiline
public boolean isMultiline() -
getColumnSpan
public int getColumnSpan() -
isAddAllowed
public boolean isAddAllowed() -
isAny
public boolean isAny() -
isTextSearch
public boolean isTextSearch() -
isMinutes
public boolean isMinutes() -
isPopupText
public boolean isPopupText() -
isCurrency
public boolean isCurrency() -
isCountry
public boolean isCountry() -
isPhone
public boolean isPhone() -
isEmail
public boolean isEmail() -
isAddress
public boolean isAddress() -
isTimeZone
public boolean isTimeZone() -
isDays
public boolean isDays() -
isSerial
public boolean isSerial() -
isSecret
public boolean isSecret() -
isRequired
public boolean isRequired() -
isCode
public boolean isCode() -
isNegativeAllowed
public boolean isNegativeAllowed() -
getStyle
-
isStyle
-
getDisplayName
-
setDisplayName
-
getTabName
-