|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.core.modules.DcModule
net.datacrow.core.modules.DcPropertyModule
public class DcPropertyModule
A property module is the simplest module type.
Examples of property modules are the movie and music genres, the software category,
the storage media and the platforms. A property module will never show up in the
module bar. In fact it will not show up anywhere until used within another module.
Its existence depends on other modules.
Property modules are solely used by reference fields.
DcReferencesField
,
DcComboBox
Field Summary | |
---|---|
protected DcMinimalisticItemView |
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 | |
---|---|
DcPropertyModule(int index,
java.lang.String name,
java.lang.String tableName,
java.lang.String tableShortName,
java.lang.String objectName,
java.lang.String objectNamePlural)
Creates a new instance. |
|
DcPropertyModule(XmlModule xmlModule)
Creates a new module based on a XML definition. |
Method Summary | |
---|---|
DcObject |
createItem()
Creates a new instance of an item belonging to this module. |
boolean |
equals(java.lang.Object o)
|
int |
getDefaultSortFieldIdx()
Retrieves the index of the field on which is sorted by default. |
DcMinimalisticItemView |
getForm()
Creates (if needed) the simple item view. |
DcImageIcon |
getIcon16()
The small icon used to represent the module. |
DcImageIcon |
getIcon32()
The large icon used to represent the module. |
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[] |
getSupportedViews()
|
TemplateModule |
getTemplateModule()
Returns the template module. |
boolean |
hasDependingModules()
Indicates if other modules depend on this module. |
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 default fields. |
void |
initializeUI()
Initializes the simple item view. |
boolean |
isCustomFieldsAllowed()
Indicates if this module is allowed to be customized. |
boolean |
isTopModule()
Indicates if this module is a top module. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected DcMinimalisticItemView form
Constructor Detail |
---|
public DcPropertyModule(XmlModule xmlModule)
module
- public DcPropertyModule(int index, java.lang.String name, java.lang.String tableName, java.lang.String tableShortName, java.lang.String objectName, java.lang.String objectNamePlural)
index
- The module index.topModule
- Indicates if the module is a top module. Top modules are allowed
to be displayed in the module bar and can be enabled or disabled.name
- The internal unique name of the module.description
- The module descriptionobjectName
- The name of the items belonging to this module.objectNamePlural
- The plural name of the items belonging to this module.tableName
- The database table name for this module.tableShortName
- The database table short name for this module.Method Detail |
---|
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)
public DcMinimalisticItemView getForm()
public boolean isTopModule()
DcModule
isTopModule
in class DcModule
public boolean hasInsertView()
DcModule
hasInsertView
in class DcModule
public boolean hasSearchView()
DcModule
hasSearchView
in class DcModule
public boolean hasDependingModules()
DcModule
hasDependingModules
in class DcModule
public int getDefaultSortFieldIdx()
getDefaultSortFieldIdx
in class DcModule
DcProperty._A_NAME
public void initializeUI()
initializeUI
in class DcModule
public int[] getSupportedViews()
getSupportedViews
in class DcModule
public DcObject createItem()
createItem
in class DcModule
public boolean isCustomFieldsAllowed()
isCustomFieldsAllowed
in class DcModule
public int[] getMinimalFields(java.util.Collection<java.lang.Integer> include)
getMinimalFields
in class DcModule
protected void initializeFields()
initializeFields
in class DcModule
public DcImageIcon getIcon16()
DcModule
getIcon16
in class DcModule
public DcImageIcon getIcon32()
DcModule
getIcon32
in class DcModule
public TemplateModule getTemplateModule()
getTemplateModule
in class DcModule
public boolean equals(java.lang.Object o)
equals
in class DcModule
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |