net.datacrow.core.modules
Class ExternalReferenceModule

java.lang.Object
  extended by net.datacrow.core.modules.DcModule
      extended by net.datacrow.core.modules.DcPropertyModule
          extended by net.datacrow.core.modules.ExternalReferenceModule
All Implemented Interfaces:
java.lang.Comparable<DcModule>

public class ExternalReferenceModule
extends DcPropertyModule


Field Summary
 
Fields inherited from class net.datacrow.core.modules.DcPropertyModule
form
 
Fields inherited from class net.datacrow.core.modules.DcModule
_TYPE_ASSOCIATE_MODULE, _TYPE_EXTERNALREFERENCE_MODULE, _TYPE_MAPPING_MODULE, _TYPE_MEDIA_MODULE, _TYPE_MODULE, _TYPE_PROPERTY_MODULE, _TYPE_TEMPLATE_MODULE, insertView, searchView
 
Constructor Summary
ExternalReferenceModule()
           
ExternalReferenceModule(int index, java.lang.String name, java.lang.String tableName, java.lang.String tableShortName, java.lang.String objectName, java.lang.String objectNamePlural)
           
 
Method Summary
 DcObject createItem()
          Creates a new instance of an item belonging to this module.
 int getDefaultSortFieldIdx()
          Retrieves the index of the field on which is sorted by default.
 int getDisplayIndex()
          The location of the module in the module bar.
 DcPropertyModule getInstance(int index, java.lang.String name, java.lang.String tableName, java.lang.String tableShortName, java.lang.String objectName, java.lang.String objectNamePlural)
           
 int[] getMinimalFields(java.util.Collection<java.lang.Integer> include)
           
 int getType()
           
 boolean hasDependingModules()
          Indicates if other modules depend on this module.
protected  void initializeFields()
          Initializes the default fields.
 boolean isServingMultipleModules()
          Indicates if this module is used by multiple modules.
 
Methods inherited from class net.datacrow.core.modules.DcPropertyModule
equals, getForm, getIcon16, getIcon32, getSupportedViews, getTemplateModule, hasInsertView, hasSearchView, initializeUI, isCustomFieldsAllowed, isTopModule
 
Methods inherited from class net.datacrow.core.modules.DcModule
addField, addValueEnhancer, applySettings, canBeLend, compareTo, delete, deliversOnlineService, getChartPanel, getChild, getCurrentInsertView, getCurrentSearchView, getDefaultData, getDescription, getDisplayFieldIdx, getField, getField, getFieldCount, getFieldDefinitions, getFieldIndices, getFields, getFileField, getFileRenamerDialog, getFilterForm, getIcon16Filename, getIcon32Filename, getIconField, getImporter, getImporterClass, getIndex, getInsertView, getItem, getItemForm, getItemPluralResourceKey, getItemResourceKey, getKeyStroke, getLabel, getMenuBar, getModuleResourceKey, getName, getNameFieldIdx, getObjectName, getObjectNamePlural, getOnlineServices, getParent, getParentReferenceFieldIndex, getPersistentField, getPropertyModule, getQuickView, getQuickViewFieldDefinitions, getSearchView, getSetting, getSettings, getSynchronizer, getSystemDisplayFieldIdx, getSystemField, getSystemObjectName, getSystemObjectNamePlural, getTableName, getTableShortName, getViews, getWebFieldDefinitions, getXmlModule, hasActualReferenceTo, hashCode, hasReferenceTo, hasReports, initializeMultiReferenceFields, initializeSettings, initializeSystemFields, isAbstract, isChildModule, isContainerManaged, isCustomModule, isDefaultDataLoaded, isEditingAllowed, isEnabled, isEnabled, isFileBacked, isHasImages, isHasReferences, isNew, isParentModule, isSearchViewInitialized, isSelectableInUI, isValid, release, removeEnhancers, setChild, setDefaultDataLoaded, setIcon16, setIcon32, setNew, setServingMultipleModules, setSetting, setValid, setXmlModule, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExternalReferenceModule

public ExternalReferenceModule()

ExternalReferenceModule

public ExternalReferenceModule(int index,
                               java.lang.String name,
                               java.lang.String tableName,
                               java.lang.String tableShortName,
                               java.lang.String objectName,
                               java.lang.String objectNamePlural)
Method Detail

getInstance

public DcPropertyModule getInstance(int index,
                                    java.lang.String name,
                                    java.lang.String tableName,
                                    java.lang.String tableShortName,
                                    java.lang.String objectName,
                                    java.lang.String objectNamePlural)
Overrides:
getInstance in class DcPropertyModule

getMinimalFields

public int[] getMinimalFields(java.util.Collection<java.lang.Integer> include)
Overrides:
getMinimalFields in class DcPropertyModule

createItem

public DcObject createItem()
Description copied from class: DcPropertyModule
Creates a new instance of an item belonging to this module.

Overrides:
createItem in class DcPropertyModule

getType

public int getType()
Overrides:
getType in class DcModule

hasDependingModules

public boolean hasDependingModules()
Description copied from class: DcModule
Indicates if other modules depend on this module.

Overrides:
hasDependingModules in class DcPropertyModule

getDefaultSortFieldIdx

public int getDefaultSortFieldIdx()
Description copied from class: DcPropertyModule
Retrieves the index of the field on which is sorted by default. Always returns the name field.

Overrides:
getDefaultSortFieldIdx in class DcPropertyModule
See Also:
DcProperty._A_NAME

getDisplayIndex

public int getDisplayIndex()
Description copied from class: DcModule
The location of the module in the module bar.

Overrides:
getDisplayIndex in class DcModule

isServingMultipleModules

public boolean isServingMultipleModules()
Description copied from class: DcModule
Indicates if this module is used by multiple modules.

Overrides:
isServingMultipleModules in class DcModule

initializeFields

protected void initializeFields()
Initializes the default fields.

Overrides:
initializeFields in class DcPropertyModule