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.


Constructor Index

 o Dimension()
Default constructor.
 o Dimension(DataRow)
Initializes a new instance based on the values on a row in the DimensionsDS

Method Index

 o getEditPanels()
Returns the panels to be used in the tabs of the Edit dialog.
 o getHierarchyPanel()
Returns the panel to be used in the Hierarchy tab of the Edit dialog.
 o getID()
Returns the id of the dimension.
 o getName()
Returns the name of the dimension.
 o getOverviewPanel()
Returns the panel to be used in the overview list of the main window.
 o getValuePanel()
Returns the panel to be used in the Value tab of the Edit dialog.
 o getWeightPanel()
Returns the panel to be used in the Weight tab of the Edit dialog.
 o isMultiValue()
Tells whether the dimension allows multiple values.
 o isReady()
Tells whether the dimension has been marked ready or not.
 o main(String[])
Tests the class.
 o match(String)
Looks for entries matching to the string from the hierarchy.
 o setStatus(Boolean)
Sets the ready status of the dimension.

Constructors

 o Dimension

 public Dimension()

Default constructor.

 o Dimension

 public Dimension(DataRow dimensionRow)

Initializes a new instance based on the values on a row in the DimensionsDS

Methods

 o getName

 public String getName()

Returns the name of the dimension.

Returns:
a string containing the name of the dimension
 o getID

 public Long getID()

Returns the id of the dimension.

Returns:
a long integer containing the dimension id.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o isReady

 public Boolean isReady()

Tells whether the dimension has been marked ready or not.

Returns:
boolean value telling if the dimension is ready.
 o isMultiValue

 public Boolean isMultiValue()

Tells whether the dimension allows multiple values.

Returns:
boolean value telling if the dimension allows multiple values.
 o setStatus

 public void setStatus(Boolean newValue)

Sets the ready status of the dimension.

Parameters:
boolean - value stating whether the dimension is ready or not.
 o main

 public static void main(String args[])

Tests the class.



All Packages  Class Hierarchy  This Package  Previous  Next  Index