|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTree
ilog.cpl.tree.IlpTreeView
public class IlpTreeView
Graphic view part of the MVC architecture for the tree component.
This class displays the content of a TreeModel object
in the form of a tree.
In addition to the common 'what is highlighted is what is selected' paradigm,
this tree offers an alternate look-and-feel using check boxes to render/manipulate
the selection. See setSelectionLookAndFeel(int).
| Nested Class Summary | |
|---|---|
protected class |
IlpTreeView.IlpTreeModelHandler
Listens to the model and updates the graphic representation of the nodes accordingly when nodes are changed. |
| Nested classes/interfaces inherited from class javax.swing.JTree |
|---|
JTree.AccessibleJTree, JTree.DynamicUtilTreeNode, JTree.EmptySelectionModel, JTree.TreeModelHandler, JTree.TreeSelectionRedirector |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
CHECKBOX_SELECTION_LOOK_AND_FEEL
Selection is displayed/modified by check boxes. |
static String |
HIGHLIGHT_MODE_PROPERTY
Bound property name for highlightMode. |
static int |
HIGHLIGHT_SELECTION_LOOK_AND_FEEL
Selection is displayed/modified by highlighting nodes. |
static int |
LEAD_SELECTION_HIGHLIGHT
Only the lead selection is highlighted. |
static int |
SELECTED_SELECTION_HIGHLIGHT
The selected objects from the selection model are highlighted. |
static String |
SELECTION_CHECKBOX_VISIBLE_PROPERTY
Bound property name for selectionCheckBoxVisible. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface ilog.cpl.css.IlpStylable |
|---|
UPDATE_ALL_MASK, UPDATE_COMPONENT_MASK, UPDATE_NONE_MASK, UPDATE_OBJECTS_MASK |
| Fields inherited from interface ilog.views.util.styling.IlvStylable |
|---|
APPLIED_RULE_MASK, BAD_CLASS_MASK, BAD_PROP_MASK, BAD_PROP_WITH_STACK_MASK, CREATED_MASK, DECL_MASK, DECL_VALUE_MASK, FAILED_CONVERSIONS_MASK, TIME_REPORT_MASK, WARNING_PROP_MASK |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlpTreeView()
Creates an IlpTreeView object. |
|
| Method Summary | |
|---|---|
void |
addPseudoClass(IlpObject bo,
String pseudo)
Adds a pseudoclass to the specified business object. |
void |
addPseudoClass(IlpRepresentationObject ro,
String pseudo)
Adds a pseudoclass to the given representation object. |
protected TreePath |
createPathForNode(TreeNode node)
Creates a tree path for the given node. |
protected TreeModelListener |
createTreeModelListener()
Creates and returns an instance of IlpTreeModelHandler. |
boolean |
ensureVisible(IlpObject object)
Scrolls the view in such a way that a given object becomes visible. |
boolean |
ensureVisible(IlpRepresentationObject ro)
Scrolls the view in such a way that a given representation object becomes visible. |
IlpAttribute |
getAttribute(IlpPoint viewLocation)
Returns the IlpAttribute object at the given position
in this object. |
boolean |
getCollapseUnselectsDescendants()
Returns true if collapsing a node deselects its
descendants. |
Container |
getContainer()
Returns the concrete container where the graphics are currently being displayed. |
IlpContext |
getContext()
Returns the application context. |
IlpGraphicController |
getController()
Returns the controller, which is responsible for the interaction between the user and the view. |
IlpGraphic |
getGraphic(IlpPoint viewLocation)
Returns the IlpGraphic object at the given position in this object. |
Class |
getGraphicComponentClass()
Returns the graphic component class supported by this implementation of graphic view. |
IlpGraphicHolder |
getGraphicHolder()
Returns the association between object representations and graphics. |
int |
getHighlightMode()
Returns the highlight mode. |
IlpGraphic |
getInnermostGraphic(IlpPoint viewLocation)
Returns the innermost graphic at the given position in this object. |
List |
getPseudoClasses(IlpRepresentationObject ro,
IlpAttribute a)
Returns the custom pseudoclasses currently active for the object |
IlpRepresentationObject |
getRepresentationObject(IlpPoint viewLocation)
Returns the IlpRepresentationObject object at the given position
in this object. |
IlpRepresentationObjectMapper |
getRepresentationObjectMapper()
Returns the mapper that allows the tree view to know the correspondence between IlpRepresentationObject
and IlpObject. |
IlpRepresentationObjectSelectionModel |
getRepresentationObjectSelectionModel()
Returns the IlpRepresentationObjectSelectionModel
used to handle the selection of representation objects. |
IlpGraphicViewStyleManager |
getStyleManager()
Deprecated. The Style API has been replaced by the Cascading Style Sheet mechanism. Please use the method setStyleSheets
or getStyleSheets instead. |
int |
getStyleSheetDebugMask()
Returns the current debug level. |
String[] |
getStyleSheets()
Returns the cascading style sheets. |
String |
getStyleSheets(int index)
Returns one of the cascading style sheets. |
ilog.cpl.tree.internal.IlpTreeViewSupport |
getTreeViewSupport()
useful for our friend: the controller. |
String |
getUIClassID()
Returns the name of the L&F class that renders this component. |
ilog.cpl.graphic.css.internal.IlpViewCSSContext |
getViewCSSContext()
Returns the context information that provides Cascading Style Sheets support for this graphic view. |
boolean |
hasStyleSheets()
Returns true if style sheets have been defined for this view. |
void |
invalidate(IlpRepresentationObject ro)
Invalidates the graphic representation of the given object. |
void |
invalidateGraphics()
Invalidates all the graphic representations in this view. |
void |
invalidateLayoutCache()
This is a convenient method to allow for explicitely invalidating the layout cache. |
void |
invalidateLayoutCache(IlpRepresentationObject ro)
This is a convenient method to allow for explicitely invalidating the layout cache for a specific object. |
boolean |
isSelectionCheckBoxVisible()
Indicates whether the selected nodes are displayed using check boxes. |
protected boolean |
removeDescendantSelectedPaths(TreePath path,
boolean includePath)
Removes any paths in the selection that are descendants of path. |
void |
removePseudoClass(IlpObject bo,
String pseudo)
Removes a pseudoclass from the specified business object. |
void |
removePseudoClass(IlpRepresentationObject ro,
String pseudo)
Removes a pseudoclass from the given representation object. |
void |
representationObjectsAdded(AdapterEvent e)
Called when objects have been added to the adapter. |
void |
representationObjectsRemoved(AdapterEvent e)
Called when objects have been removed from the adapter. |
void |
setCollapseUnselectsDescendants(boolean collapseUnselectsDescendants)
Sets the descendants of a collapsed node to be deselected or not. |
void |
setController(IlpGraphicController controller)
Sets the controller, which is responsible for the interaction between the user and the view. |
void |
setHighlightMode(int highlightMode)
Sets the mode used to determine whether a cell is highlighted or not. |
void |
setModel(TreeModel newModel)
Sets the TreeModel that will provide the data. |
void |
setRepresentationObjectMapper(IlpRepresentationObjectMapper mapper)
Sets a mapper that allows the tree view to know the correspondence between IlpRepresentationObject and
IlpObject |
void |
setSelectionCheckBoxVisible(boolean selectionCheckBoxVisible)
Activates or deactivates the use of check boxes to display and modify the selection status of nodes. |
void |
setSelectionLookAndFeel(int selectionLookAndFeel)
Sets the way the selection is rendered to/manipulated by the end-user. |
void |
setStyleManager(IlpGraphicViewStyleManager config)
Deprecated. The Style API has been replaced by the Cascading Style Sheet mechanism. Please use the method setStyleSheets
or getStyleSheets instead. |
void |
setStyleSheetDebugMask(int mask)
Sets the debug level while parsing the style sheets. |
void |
setStyleSheets(int index,
String css)
Changes one of the cascading style sheets. |
void |
setStyleSheets(int index,
String css,
int updateMask)
Changes one of the cascading style sheets. |
void |
setStyleSheets(String[] css)
Sets the cascading style sheets. |
void |
setStyleSheets(String[] css,
int updateMask)
Sets the cascading style sheets. |