net.datacrow.core.objects
Class DcProperty

java.lang.Object
  extended by net.datacrow.core.objects.DcObject
      extended by net.datacrow.core.objects.DcProperty
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DcObject>
Direct Known Subclasses:
Tab

public class DcProperty
extends DcObject

A property represents a simple item such as a category or a storage medium. Properties are widely used within Data Crow to allow users to select from a predefined set of options.

Author:
Robert Jan van der Waals
See Also:
Serialized Form

Field Summary
static int _A_NAME
           
static int _B_ICON
           
static int _C_ALTERNATIVE_NAMES
           
 
Fields inherited from class net.datacrow.core.objects.DcObject
_ID, _SYS_AVAILABLE, _SYS_CONTAINER, _SYS_CREATED, _SYS_DISPLAYVALUE, _SYS_EXTERNAL_REFERENCES, _SYS_FILEHASH, _SYS_FILEHASHTYPE, _SYS_FILENAME, _SYS_FILESIZE, _SYS_LENDBY, _SYS_LOANDAYSTILLOVERDUE, _SYS_LOANDUEDATE, _SYS_LOANDURATION, _SYS_MODIFIED, _SYS_MODULE, _SYS_SERVICE, _SYS_SERVICEURL, _VALUE, children
 
Constructor Summary
DcProperty(int module)
          Creates a new instance.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getFilename()
          The filename on which this item is based.
 java.lang.String getName()
          Returns the name of this object based on the field settings.
 int getSystemDisplayFieldIdx()
           
 java.lang.String toString()
           
 
Methods inherited from class net.datacrow.core.objects.DcObject
addChild, addExternalReference, addRequest, applyEnhancers, applyTemplate, applyTemplate, beforeDelete, beforeSave, checkIntegrity, clearValues, clone, compareTo, copy, copyImage, createIcon, delete, destroy, executeRequests, finalize, flushImages, getChildren, getCurrentChildren, getDatabaseFieldCount, getDatabaseFieldName, getDefaultSortFieldIdx, getDisplayFieldIdx, getDisplayString, getExternalReference, getField, getFieldIndices, getFields, getFieldType, getFileField, getIcon, getID, getLabel, getMaxFieldLength, getModule, getNormalizedString, getNotSearchableFields, getParentID, getParentReferenceFieldIndex, getRequests, getTableName, getTableShortName, getValue, getValueDef, getValues, hashCode, hasPrimaryKey, initializeImages, initializeReferences, initializeReferences, isChanged, isChanged, isDestroyed, isEnabled, isFilled, isLastInLine, isLoaded, isNew, isRequired, isSearchable, isUnique, isUpdateGUI, load, loadChildren, markAsChanged, markAsUnchanged, merge, release, reload, removeChildren, removeRequests, saveNew, saveUpdate, saveUpdate, setChanged, setChildren, setIDs, setLastInLine, setLoanInformation, setLoanInformation, setNew, setUpdateGUI, setValidate, setValue, setValueForColumn, setValueForName, setValueLowLevel, validateRequiredFields
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_A_NAME

public static final int _A_NAME
See Also:
Constant Field Values

_B_ICON

public static final int _B_ICON
See Also:
Constant Field Values

_C_ALTERNATIVE_NAMES

public static final int _C_ALTERNATIVE_NAMES
See Also:
Constant Field Values
Constructor Detail

DcProperty

public DcProperty(int module)
Creates a new instance.

Parameters:
module -
Method Detail

getSystemDisplayFieldIdx

public int getSystemDisplayFieldIdx()
Overrides:
getSystemDisplayFieldIdx in class DcObject

getFilename

public java.lang.String getFilename()
The filename on which this item is based.

Overrides:
getFilename in class DcObject
Returns:
Returns always null.

toString

public java.lang.String toString()
Overrides:
toString in class DcObject

getName

public java.lang.String getName()
Description copied from class: DcObject
Returns the name of this object based on the field settings. If the field settings do no specify any descriptive fields the default name field index is used as defined in the module definition.

Overrides:
getName in class DcObject

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class DcObject