All Packages Class Hierarchy This Package Previous Next Index
Class cpt.Dimension
java.lang.Object
|
+----cpt.Dimension
- public class Dimension
- extends Object
CPT's metadata dimension class. This class is
used inside the cptDocument for storing dimension
related information and providing functionality
for displaying it in the UI.
-
Dimension()
- Default constructor.
-
Dimension(DataRow)
- Initializes a new instance based on the values on a row
in the DimensionsDS
-
getEditPanels()
- Returns the panels to be used in the tabs of the
Edit dialog.
-
getHierarchyPanel()
- Returns the panel to be used in the Hierarchy tab of the
Edit dialog.
-
getID()
- Returns the id of the dimension.
-
getName()
- Returns the name of the dimension.
-
getOverviewPanel()
- Returns the panel to be used in the overview list
of the main window.
-
getValuePanel()
- Returns the panel to be used in the Value tab of the
Edit dialog.
-
getWeightPanel()
- Returns the panel to be used in the Weight tab of the
Edit dialog.
-
isMultiValue()
- Tells whether the dimension allows multiple values.
-
isReady()
- Tells whether the dimension has been marked ready or not.
-
main(String[])
- Tests the class.
-
match(String)
- Looks for entries matching to the string from the hierarchy.
-
setStatus(Boolean)
- Sets the ready status of the dimension.
Dimension
public Dimension()
- Default constructor.
Dimension
public Dimension(DataRow dimensionRow)
- Initializes a new instance based on the values on a row
in the DimensionsDS
getName
public String getName()
- Returns the name of the dimension.
- Returns:
- a string containing the name of the dimension
getID
public Long getID()
- Returns the id of the dimension.
- Returns:
- a long integer containing the dimension id.
getValuePanel
public BevelPanel getValuePanel()
- Returns the panel to be used in the Value tab of the
Edit dialog.
- Returns:
- a BevelPanel to be shown in a tab.
getWeightPanel
public BevelPanel getWeightPanel()
- Returns the panel to be used in the Weight tab of the
Edit dialog.
- Returns:
- a BevelPanel to be shown in a tab.
getHierarchyPanel
public BevelPanel getHierarchyPanel()
- Returns the panel to be used in the Hierarchy tab of the
Edit dialog.
- Returns:
- a BevelPanel to be shown in a tab.
getOverviewPanel
public BevelPanel getOverviewPanel()
- Returns the panel to be used in the overview list
of the main window.
- Returns:
- a BevelPanel to be shown in the list in the main window.
getEditPanels
public Vector getEditPanels()
- Returns the panels to be used in the tabs of the
Edit dialog.
- Returns:
- a vector of panels to be shown in a tabset.
match
public Vector match(String matchString)
- Looks for entries matching to the string from the hierarchy.
- Parameters:
- matchString - the string that is looked for
- Returns:
- a vector containing references to nodes matching with the string.
isReady
public Boolean isReady()
- Tells whether the dimension has been marked ready or not.
- Returns:
- boolean value telling if the dimension is ready.
isMultiValue
public Boolean isMultiValue()
- Tells whether the dimension allows multiple values.
- Returns:
- boolean value telling if the dimension allows multiple values.
setStatus
public void setStatus(Boolean newValue)
- Sets the ready status of the dimension.
- Parameters:
- boolean - value stating whether the dimension is ready or not.
main
public static void main(String args[])
- Tests the class.
All Packages Class Hierarchy This Package Previous Next Index