net.datacrow.core.modules
Class TemplateModule

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

public class TemplateModule
extends DcModule

The template module represents templates. Templates can be applied when creating new items. The template module is based on the module which it is serving.

Author:
Robert Jan van der Waals

Field Summary
 
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
TemplateModule(DcModule parent)
          Creates a new instance based on the specified module.
 
Method Summary
 DcObject createItem()
          Creates a new template item.
 boolean equals(java.lang.Object o)
           
 DcFieldDefinitions getFieldDefinitions()
          The field settings/definitions.
 DcMinimalisticItemView getForm()
          Creates the simple item view.
 DcImageIcon getIcon16()
          The small icon used to represent the module.
 DcImageIcon getIcon32()
          The large icon used to represent the module.
 int[] getSupportedViews()
           
 DcModule getTemplatedModule()
          Retrieves the module this template module has been created for.
 boolean hasInsertView()
          Indicates if this module has an insert view available.
 boolean hasSearchView()
          Indicates if this module has a search view available.
protected  void initializeFields()
          Initializes the standard fields.
protected  void initializeUI()
          Creates (of need be) the template form.
 boolean isHasReferences()
           
 
Methods inherited from class net.datacrow.core.modules.DcModule
addField, addValueEnhancer, applySettings, canBeLend, compareTo, delete, deliversOnlineService, getChartPanel, getChild, getCurrentInsertView, getCurrentSearchView, getDefaultData, getDefaultSortFieldIdx, getDescription, getDisplayFieldIdx, getDisplayIndex, getField, getField, getFieldCount, getFieldIndices, getFields, getFileField, getFileRenamerDialog, getFilterForm, getIcon16Filename, getIcon32Filename, getIconField, getImporter, getImporterClass, getIndex, getInsertView, getItem, getItemForm, getItemPluralResourceKey, getItemResourceKey, getKeyStroke, getLabel, getMenuBar, getMinimalFields, getModuleResourceKey, getName, getNameFieldIdx, getObjectName, getObjectNamePlural, getOnlineServices, getParent, getParentReferenceFieldIndex, getPersistentField, getPropertyModule, getQuickView, getQuickViewFieldDefinitions, getSearchView, getSetting, getSettings, getSynchronizer, getSystemDisplayFieldIdx, getSystemField, getSystemObjectName, getSystemObjectNamePlural, getTableName, getTableShortName, getTemplateModule, getType, getViews, getWebFieldDefinitions, getXmlModule, hasActualReferenceTo, hasDependingModules, hashCode, hasReferenceTo, hasReports, initializeMultiReferenceFields, initializeSettings, initializeSystemFields, isAbstract, isChildModule, isContainerManaged, isCustomFieldsAllowed, isCustomModule, isDefaultDataLoaded, isEditingAllowed, isEnabled, isEnabled, isFileBacked, isHasImages, isNew, isParentModule, isSearchViewInitialized, isSelectableInUI, isServingMultipleModules, isTopModule, 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

TemplateModule

public TemplateModule(DcModule parent)
Creates a new instance based on the specified module. The fields of the provided module are added to this module.

Parameters:
parent -
Method Detail

hasInsertView

public boolean hasInsertView()
Description copied from class: DcModule
Indicates if this module has an insert view available.

Overrides:
hasInsertView in class DcModule

hasSearchView

public boolean hasSearchView()
Description copied from class: DcModule
Indicates if this module has a search view available.

Overrides:
hasSearchView in class DcModule

getTemplatedModule

public DcModule getTemplatedModule()
Retrieves the module this template module has been created for.


getIcon16

public DcImageIcon getIcon16()
Description copied from class: DcModule
The small icon used to represent the module.

Overrides:
getIcon16 in class DcModule

getIcon32

public DcImageIcon getIcon32()
Description copied from class: DcModule
The large icon used to represent the module.

Overrides:
getIcon32 in class DcModule

getForm

public DcMinimalisticItemView getForm()
Creates the simple item view.

Returns:

createItem

public DcObject createItem()
Creates a new template item.

Overrides:
createItem in class DcModule
See Also:
DcTemplate

getFieldDefinitions

public DcFieldDefinitions getFieldDefinitions()
The field settings/definitions.

Overrides:
getFieldDefinitions in class DcModule
See Also:
DcModule.getFieldDefinitions()

initializeFields

protected void initializeFields()
Initializes the standard fields.

Overrides:
initializeFields in class DcModule

isHasReferences

public boolean isHasReferences()
Overrides:
isHasReferences in class DcModule

initializeUI

protected void initializeUI()
Creates (of need be) the template form.

Overrides:
initializeUI in class DcModule
See Also:
TemplateForm

getSupportedViews

public int[] getSupportedViews()
Overrides:
getSupportedViews in class DcModule

equals

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