|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tonbeller.jpivot.navigator.hierarchy.HierarchyItem
public class HierarchyItem
Wraps a hierarchy for HierarchyNavigator. Contains two selections, one multiple selection for axis view and another one, single selection for slicer view. If the item is moved around between axis and slicer category it does not forget its selection.
Constructor Summary | |
---|---|
HierarchyItem(AbstractCategory category,
Hierarchy hierarchy)
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object arg)
lexical compare for GUI lists |
java.util.List |
getAxisSelection()
Returns the axisSelection. |
AbstractCategory |
getCategory()
|
java.util.Collection |
getDeleted()
the collection of members that shall be deleted from the query. |
Dimension |
getDimension()
returns the Dimension of this HierarchyItem |
java.lang.Object |
getExpression()
|
Hierarchy |
getHierarchy()
Returns the current hierarchy. |
java.lang.String |
getId()
|
java.lang.String |
getLabel()
|
java.util.List |
getSlicerSelection()
Returns the slicerSelection. |
boolean |
isAxisSelectionDirty()
Returns the axisSelectionDirty. |
boolean |
isClickable()
|
boolean |
isMovable()
|
boolean |
isSlicerSelectionDirty()
Returns the slicerSelectionDirty. |
void |
removeFromSelection(java.util.Set deleted)
removes deleted members from the selections. |
void |
request(com.tonbeller.wcf.controller.RequestContext context)
called when the user clicks on this item. |
void |
setAxisSelection(java.util.Collection selection)
Sets the axisSelection. |
void |
setAxisSelectionDirty(boolean axisSelectionDirty)
Sets the axisSelectionDirty. |
void |
setCategory(AbstractCategory category)
this item has been moved from one category to another. e.g., this hierarchy has been moved from rows to filters. |
void |
setDeleted(java.util.Collection c)
the collection of members that shall be deleted from the query. |
void |
setExpression(java.lang.Object object)
|
void |
setSelection(java.util.Collection selection)
|
void |
setSlicerSelection(java.util.Collection selection)
Sets the slicerSelection. |
void |
setSlicerSelectionDirty(boolean slicerSelectionDirty)
Sets the slicerSelectionDirty. |
java.lang.String |
validateSelection(java.util.Collection selection)
validates the selection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HierarchyItem(AbstractCategory category, Hierarchy hierarchy)
Method Detail |
---|
public java.lang.String getId()
public void setCategory(AbstractCategory category)
public AbstractCategory getCategory()
public Hierarchy getHierarchy()
public Dimension getDimension()
public java.lang.String getLabel()
getLabel
in interface com.tonbeller.wcf.catedit.Item
public void request(com.tonbeller.wcf.controller.RequestContext context) throws java.lang.Exception
request
in interface com.tonbeller.wcf.controller.RequestListener
java.lang.Exception
public java.util.List getAxisSelection()
public java.util.List getSlicerSelection()
public void setAxisSelection(java.util.Collection selection)
axisSelection
- The axisSelection to setpublic void setSlicerSelection(java.util.Collection selection)
slicerSelection
- The slicerSelection to setpublic boolean isAxisSelectionDirty()
public boolean isSlicerSelectionDirty()
public void setAxisSelectionDirty(boolean axisSelectionDirty)
axisSelectionDirty
- The axisSelectionDirty to setpublic void setSlicerSelectionDirty(boolean slicerSelectionDirty)
slicerSelectionDirty
- The slicerSelectionDirty to setpublic void setSelection(java.util.Collection selection)
public java.lang.String validateSelection(java.util.Collection selection)
selection
-
public int compareTo(java.lang.Object arg)
compareTo
in interface java.lang.Comparable
public void removeFromSelection(java.util.Set deleted)
public java.util.Collection getDeleted()
public void setDeleted(java.util.Collection c)
public java.lang.Object getExpression()
public void setExpression(java.lang.Object object)
public boolean isMovable()
isMovable
in interface com.tonbeller.wcf.catedit.Item
public boolean isClickable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |