net.sf.dc.core.modules
Class SoftwareCategoryModule

java.lang.Object
  extended bynet.sf.dc.core.modules.DCModule
      extended bynet.sf.dc.core.modules.SoftwareCategoryModule

public class SoftwareCategoryModule
extends DCModule

The Software category module

Since:
1.3
Version:
DC1.00
Author:
Robert-Jan van der Waals
See Also:
DCModules

Field Summary
 
Fields inherited from class net.sf.dc.core.modules.DCModule
fields, insertPanel, searchPanel, tableName
 
Constructor Summary
SoftwareCategoryModule()
          Initializes this module
 
Method Summary
 ImportCDProcess getCDImportProcess(java.lang.String sourceDir, boolean confirmEachDir, java.lang.String nameOfCD)
          Returns null (no CD import process present for Software Categories)
 DCObject getDataCrowObject()
          Return the object managed by this module
 SoftwareCategoryForm getForm()
          Returns the form which holds the UI items for this Module.
 java.lang.String getHiddenFieldsSettingsKey()
           
 javax.swing.ImageIcon getIcon()
           
 javax.swing.JButton[] getMenuItems()
          Returns the specific menu items for this module.
 java.lang.String getRequiredFieldsSettingsKey()
           
protected  void initializeFields()
          Initalizes all the fields
protected  void initializeUI()
          Create the insert and search panel
 
Methods inherited from class net.sf.dc.core.modules.DCModule
getFieldCount, getFieldDefinition, getFieldDefinitions, getIndex, getInsertPanel, getName, getSearchPanel, isAmazonUpdateAllowed, isImdbUpdateAllowed, isStandalone, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoftwareCategoryModule

public SoftwareCategoryModule()
Initializes this module

Method Detail

getIcon

public javax.swing.ImageIcon getIcon()
Specified by:
getIcon in class DCModule

initializeUI

protected void initializeUI()
Create the insert and search panel

Specified by:
initializeUI in class DCModule

getForm

public SoftwareCategoryForm getForm()
Returns the form which holds the UI items for this Module. In this, the Software Category module is an odd one. None of the other modules have a specialized form. The form consists of the insert and search panels


getMenuItems

public javax.swing.JButton[] getMenuItems()
Returns the specific menu items for this module. For this module, there are no additional menu items, so an empty array is returned (never return null !)

Specified by:
getMenuItems in class DCModule

getDataCrowObject

public DCObject getDataCrowObject()
Return the object managed by this module

Specified by:
getDataCrowObject in class DCModule
See Also:
SoftwareCategory

getHiddenFieldsSettingsKey

public java.lang.String getHiddenFieldsSettingsKey()
Specified by:
getHiddenFieldsSettingsKey in class DCModule

getRequiredFieldsSettingsKey

public java.lang.String getRequiredFieldsSettingsKey()
Specified by:
getRequiredFieldsSettingsKey in class DCModule

getCDImportProcess

public ImportCDProcess getCDImportProcess(java.lang.String sourceDir,
                                          boolean confirmEachDir,
                                          java.lang.String nameOfCD)
Returns null (no CD import process present for Software Categories)

Specified by:
getCDImportProcess in class DCModule
Parameters:
sourceDir - directory which is used as source for the import
confirmEachDir - indicates whether for each directory confirmation should be asked if the underlying data of this directory should be read or not.
nameOfCD - cd name (used as the location name)
Returns:
null

initializeFields

protected void initializeFields()
Initalizes all the fields

Specified by:
initializeFields in class DCModule