public class IlpTree extends JComponent implements IlpInteractiveGraphicComponent
This class is a graphical bean which encapsulates an
IlpTreeModel
, an IlpTreeView
and
an IlpTreeController
.
The tree model can be filled automatically from an
IlpDataSource
. The data source content is
translated into tree model objects, following the containment hierarchy.
The IlpTree
class provides convenient methods to access
some view, model and controller properties directly.
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
UPDATE_ALL_MASK, UPDATE_COMPONENT_MASK, UPDATE_NONE_MASK, UPDATE_OBJECTS_MASK
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
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlpTree()
Default constructor.
|
IlpTree(IlpContext context)
Creates a Tree with this context and the default MVC.
|
IlpTree(IlpContext context,
IlpTreeModel model,
IlpTreeView view,
IlpTreeController controller)
Creates a Tree component with given MVC components.
|
IlpTree(IlpTreeModel model,
IlpTreeView view,
IlpTreeController controller)
Creates a Tree component with given MVC components.
|
Modifier and Type | Method and Description |
---|---|
void |
addPseudoClass(IlpObject bo,
String pseudo)
Adds a pseudoclass to the specified business object.
|
void |
addSelectionObject(IlpObject object)
Adds the given
IlpObject to the selection. |
void |
clearSelection()
Clears the selection.
|
protected IlpAbstractTreeAdapter |
createDefaultAdapter()
Create a tree adapter for the given adapter mode.
|
protected IlpTreeController |
createDefaultController()
Creates the default controller, which is an
IlpTreeController object. |
protected IlpTreeModel |
createDefaultModel()
Creates the default model, which is an
IlpTreeModel object. |
protected IlpTreeView |
createDefaultView()
Creates the default view, which is an
IlpTreeView object. |
void |
dispose()
Cleans up the tree, disconnects the component from the data source
and drops references to objects to help the garbage collection.
|
void |
doLayout()
Lays out the components.
|
boolean |
ensureVisible(IlpObject object)
Scrolls the view in such a way that a given object
becomes visible.
|
boolean |
ensureVisible(IlpRepresentationObject object)
Scrolls the view in such a way that a given representation object
becomes visible.
|
IlpAbstractTreeAdapter |
getAdapter()
Returns the adapter connected to the tree or creates a new one.
|
TreeCellRenderer |
getCellRenderer()
Retrieves the current tree cell renderer from the view.
|
IlpContext |
getContext()
Returns the context.
|
IlpTreeController |
getController()
Returns the current controller.
|
IlpDataSource |
getDataSource()
Retrieves the current data source.
|
IlpViewInteractor |
getDefaultViewInteractor()
Returns the default view interactor.
|
IlpFilter |
getFilter()
Returns the filter used to filter business objects.
|
JScrollBar |
getHorizontalScrollBar()
Returns the horizontal scroll bar that controls the viewport's horizontal view position.
|
int |
getHorizontalScrollBarPolicy()
Returns the horizontal scroll bar policy value.
|
IlpTreeModel |
getModel()
Returns the current model.
|
IlpProject |
getProject()
Returns the component project configuration.
|
JScrollPane |
getScrollView()
Returns the scrollable view of this component.
|
IlpObject |
getSelectedObject()
Returns the first selected
IlpObject
from the collection of selected objects. |
Collection |
getSelectedObjects()
Returns the set of selected
IlpObject s. |
TreeSelectionModel |
getSelectionModel()
Retrieves the current selection model from the component.
|
Comparator |
getSortComparator()
Retrieves the comparator used to sort the nodes.
|
IlpStyle |
getStyle()
Deprecated.
The Style API has been replaced by the Cascading
Style Sheet mechanism.
|
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 cascaded style sheets.
|
String |
getStyleSheets(int index)
Returns one of the cascading style sheets.
|
JScrollBar |
getVerticalScrollBar()
Returns the vertical scroll bar that controls the viewport's horizontal view position.
|
int |
getVerticalScrollBarPolicy()
Returns the vertical scroll bar policy value.
|
IlpTreeView |
getView()
Returns the current view.
|
IlpViewInteractor |
getViewInteractor()
Retrieves the current view interactor from the controller.
|
boolean |
isObjectSelected(IlpObject object)
|
void |
refilter()
Reapplies the current filter to the adapter objects.
|
void |
removePseudoClass(IlpObject bo,
String pseudo)
Removes a pseudoclass from the specified business object.
|
void |
removeSelectionObject(IlpObject object)
Removes the given
IlpObject from the selection. |
void |
setAdapter(IlpAbstractTreeAdapter adapter)
Sets a new data source adapter.
|
void |
setCellRenderer(TreeCellRenderer renderer)
Sets a new tree cell renderer on the view.
|
void |
setController(IlpTreeController controller)
Sets the controller.
|
void |
setDataSource(IlpDataSource dataSource)
Sets a new data source.
|
void |
setDefaultViewInteractor(IlpViewInteractor interactor)
Sets the default view interactor.
|
void |
setEnabled(boolean enabled)
Sets whether or not this component is enabled.
|
void |
setFilter(IlpFilter filter)
Sets the filter.
|
void |
setHorizontalScrollBarPolicy(int policy)
Determines when the horizontal scrollbar appears.
|
void |
setModel(IlpTreeModel model)
Sets the model.
|
void |
setProject(IlpProject proj)
Sets the project configuration, containing data source
information and style sheets.
|
void |
setProject(URL projectURL)
Sets a Tree component project configuration.
|
void |
setSelectedObject(IlpObject object)
Sets the selected
IlpObject . |
void |
setSelectedObjects(Collection objects)
Sets the set of selected
IlpObject s. |
void |
setSelectionLookAndFeel(int selectionLookAndFeel)
Sets the way the selection is rendered to/manipulated by the end-user.
|
void |
setSelectionModel(TreeSelectionModel selectionModel)
Sets a new selection model on the component.
|
void |
setSortComparator(Comparator comparator)
Sets the comparator used to sort the nodes.
|
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.
|
void |
setVerticalScrollBarPolicy(int policy)
Determines when the vertical scrollbar appears.
|
void |
setView(IlpTreeView view)
Sets the view, which gets connected to the model and controller.
|
void |
setViewInteractor(IlpViewInteractor interactor)
Sets the interactor associated with the view.
|
void |
sort()
Sorts the model according to the current sort comparator.
|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
public IlpTree()
IlpTree
component in the default context.
A default model, view and controller will be created and used.
IlpSystem.GetDefaultContext()
public IlpTree(IlpContext context, IlpTreeModel model, IlpTreeView view, IlpTreeController controller)
context
- The context used by the tree.model
- The model to be used; if null
,
createDefaultModel()
is called.view
- The view to be used; if null
,
createDefaultView()
is called.controller
- The controller to be used; if null
,
createDefaultController()
is called.public IlpTree(IlpTreeModel model, IlpTreeView view, IlpTreeController controller)
model
- The model to be used; if null
,
createDefaultModel()
is called.view
- The view to be used; if null
,
createDefaultView()
is called.controller
- The controller to be used; if null
,
createDefaultController()
is called.
The Tree component is initialized using the default context.
IlpSystem.GetDefaultContext()
public IlpTree(IlpContext context)
public void dispose()
Note: After calling this function, this tree is no longer functional.
public IlpContext getContext()
getContext
in interface IlpGraphicComponent
public IlpTreeView getView()
public void setView(IlpTreeView view)
view
- The new view. When this parameter is null
, a default view is
created using createDefaultView()
.public IlpTreeModel getModel()
public void setModel(IlpTreeModel model)
model
- The new model. If this parameter is null
, a default model is
created using <createDefaultModel()
.public IlpTreeController getController()
public void setController(IlpTreeController controller)
controller
- The new controller. If this parameter is null
, a
default controller is created using createDefaultController()
.@Deprecated public IlpGraphicViewStyleManager getStyleManager()
setStyleSheets
or getStyleSheets
instead.@Deprecated public IlpStyle getStyle()
null
if the tree view has no graphic view
style manager. (This should not occur.)public IlpObject getSelectedObject()
IlpObject
from the collection of selected objects.
Returns null
if there is no selected object.getSelectedObject
in interface IlpObjectSelectionModel
public Collection getSelectedObjects()
IlpObject
s.
Returns an empty set if there is no selected object.getSelectedObjects
in interface IlpObjectSelectionModel
IlpObject
s.public boolean isObjectSelected(IlpObject object)
isObjectSelected
in interface IlpObjectSelectionModel
object
- The object which may be selected.public void addSelectionObject(IlpObject object)
IlpObject
to the selection.
This has no effect if the given object is null
.addSelectionObject
in interface IlpObjectSelectionModel
object
- The object that will be added to the selection.public void removeSelectionObject(IlpObject object)
IlpObject
from the selection.
This has no effect if the given object is null
.removeSelectionObject
in interface IlpObjectSelectionModel
object
- The object that will be removed from the selection.public void setSelectedObject(IlpObject object)
IlpObject
.
This has no effect if the given object is already selected.setSelectedObject
in interface IlpObjectSelectionModel
object
- The object that will become the selection.public void setSelectedObjects(Collection objects)
IlpObject
s.setSelectedObjects
in interface IlpObjectSelectionModel
objects
- The collection of objects that will become the selection.public void clearSelection()
clearSelection
in interface IlpObjectSelectionModel
public void setSelectionModel(TreeSelectionModel selectionModel)
selectionModel
- The new selection model.public TreeSelectionModel getSelectionModel()
public void setSelectionLookAndFeel(int selectionLookAndFeel)
selectionLookAndFeel
- One of:
IlpTreeView.HIGHLIGHT_SELECTION_LOOK_AND_FEEL
,
IlpTreeView.CHECKBOX_SELECTION_LOOK_AND_FEEL
.IlpTreeView.setSelectionLookAndFeel(int)
public void setSortComparator(Comparator comparator)
IlpObject
instances,
and should return a value indicating the order in which they should appear in the tree.comparator
- The new comparator.public Comparator getSortComparator()
IlpObject
instances,
and should return a value indicating the order in which they should appear in the tree.IlpAttributeComparator
public void sort()
This method can be used, for example, if the comparator behavior has changed.
IlpAbstractTreeAdapter.sort()
public boolean ensureVisible(IlpRepresentationObject object)
The operation is ignored if the given representation object is not part of the tree component model.
true
if the object is visible, false
otherwisepublic void setEnabled(boolean enabled)
A component that is enabled may respond to user input, while a component that is not enabled cannot respond to user input.
Note: Disabling a component does not disable it's children.
Note: Disabling a lightweight component does not prevent it from receiving
MouseEvent
s.
setEnabled
in class JComponent
enabled
- true
if this component should be
enabled, false
otherwisepublic boolean ensureVisible(IlpObject object)
This operation forces the tree path of the given object to be expanded, therefore loading the objects if they are yet represented in the view.
true
if the object is visible, false
otherwisepublic void setCellRenderer(TreeCellRenderer renderer)
renderer
- The new cell renderer.public TreeCellRenderer getCellRenderer()
public IlpViewInteractor getDefaultViewInteractor()
getDefaultViewInteractor
in interface IlpInteractiveGraphicComponent
public void setDefaultViewInteractor(IlpViewInteractor interactor)
setDefaultViewInteractor
in interface IlpInteractiveGraphicComponent
IlpInteractiveGraphicComponent.setViewInteractor(ilog.cpl.interactor.IlpViewInteractor)
public IlpViewInteractor getViewInteractor()
getViewInteractor
in interface IlpInteractiveGraphicComponent
public void setViewInteractor(IlpViewInteractor interactor)
setViewInteractor
in interface IlpInteractiveGraphicComponent
interactor
- The interactor to be set.public void setDataSource(IlpDataSource dataSource)
IlpObject
. Creation, removal, and updates
of IlpObject
s in the IlpDataSource
object are
translated by an adapter into creation, removal, and updates of
representation objects (IlpTreeNode
objects).
The adapter is created automatically by the IlpTree
object.
By default, an IlpContainmentTreeAdapter
is created.
setDataSource
in interface IlpGraphicComponent
dataSource
- The new data source.IlpDataSource
,
IlpAbstractTreeAdapter
public IlpDataSource getDataSource()
getDataSource
in interface IlpGraphicComponent
public IlpAbstractTreeAdapter getAdapter()
IlpContainmentTreeAdapter
is created.setAdapter(ilog.cpl.tree.IlpAbstractTreeAdapter)
,
setDataSource(ilog.cpl.datasource.IlpDataSource)
public void setAdapter(IlpAbstractTreeAdapter adapter)
adapter
- The adapter that connects the tree component to its
data source; cannot be null
.IllegalArgumentException
- if the given adapter is null
.getAdapter()
,
setDataSource(ilog.cpl.datasource.IlpDataSource)
public void setFilter(IlpFilter filter)
IlpObject
s that
pass through the filter are added to the model.filter
- The filter to use to filter business objects. This parameter
may be null
meaning the business objects are not filtered.public IlpFilter getFilter()
setFilter(IlpFilter)
public void refilter()
This is a convenience method for the filter feature that is supported by the adapter. It applies the current filter to the objects that are represented. This method allows you to change the filter criterion without having to set a new filter in the adapter.
IlpAbstractAdapter.refilter()
protected IlpTreeModel createDefaultModel()
IlpTreeModel
object.
A subclass can override this method to return a different model.IlpTreeModel
protected IlpTreeView createDefaultView()
IlpTreeView
object.
A subclass can override this method to return a different view.IlpTreeView
protected IlpTreeController createDefaultController()
IlpTreeController
object.
A subclass can override this method to return a different controller.IlpTreeController
protected IlpAbstractTreeAdapter createDefaultAdapter()
IlpContainmentTreeAdapter
is created.public int getVerticalScrollBarPolicy()
verticalScrollBarPolicy
propertysetVerticalScrollBarPolicy(int)
public void setVerticalScrollBarPolicy(int policy)
policy
- one of the three values listed aboveIllegalArgumentException
- if policy
is not one of the legal values shown abovegetVerticalScrollBarPolicy()
public int getHorizontalScrollBarPolicy()
horizontalScrollBarPolicy
propertysetHorizontalScrollBarPolicy(int)
public void setHorizontalScrollBarPolicy(int policy)
policy
- one of the three values listed aboveIllegalArgumentException
- if policy
is not one of the legal values shown abovegetHorizontalScrollBarPolicy()
public final JScrollPane getScrollView()
public final JScrollBar getHorizontalScrollBar()
public final JScrollBar getVerticalScrollBar()
public void setStyleSheets(String[] css) throws IlvStylingException
Each element can be a URL, a filename, or the style sheet string directly. The order is by priority (the last CSS takes precedence).
setStyleSheets
in interface IlvStylable
css
- An array of strings containing the URLs,
the file names of CSS files (usually with a .css
suffix) or CSS extracts.IlvStylingException
getStyleSheets()
public void setStyleSheets(String[] css, int updateMask) throws IlvStylingException
Each element can be a URL, a filename, or directly the style sheet string. The order is by priority (the last CSS takes precedence).
setStyleSheets
in interface IlpStylable
css
- An array of strings containing the URLs,
the file names of CSS files (usually with a
.css
suffix) or CSS extracts.updateMask
- A flag that indicates whether the component and/or the
business objects need to be updated to use this new
configuration. When
IlpStylable.UPDATE_COMPONENT_MASK
is set, the view and adapter are reconfigured with the
new style sheets. When
IlpStylable.UPDATE_OBJECTS_MASK
is
set, the representation objects that are displayed in
this view are reconfigured according to the new style
sheets.IlvStylingException
IlpStylable.UPDATE_COMPONENT_MASK
,
IlpStylable.UPDATE_OBJECTS_MASK
,
getStyleSheets()
public void setStyleSheets(int index, String css) throws IlvStylingException
This method is an alternative to setStyleSheets(java.lang.String[])
.
It lets you change one particular style sheet file, instead of setting
the whole style sheet array.
setStyleSheets
in interface IlvStylable
index
- The index of the style sheet to replace.css
- The URL, file name of the new style sheet file or CSS extract.IlvStylingException
setStyleSheets(java.lang.String[])
,
getStyleSheets(int)
public void setStyleSheets(int index, String css, int updateMask) throws IlvStylingException
This method is an alternative to
setStyleSheets(java.lang.String[])
. It lets you change one
particular style sheet file, instead of setting the whole style sheet
array. When this method is used, you can indicate whether you want to
reapply this configuration immediately to the view, the adapter and all the
objects that are already being displayed in the component.
setStyleSheets
in interface IlpStylable
index
- The index of the style sheet to replace.css
- The URL, file name or CSS extract of the new style
sheet.updateMask
- A flag that indicates whether the component and/or the
business objects need to be updated to use this new
configuration. When
IlpStylable.UPDATE_COMPONENT_MASK
is set, the view and adapter are reconfigured with the
new style sheets. When
IlpStylable.UPDATE_OBJECTS_MASK
is set, the representation objects that are displayed
in this view are reconfigured according to the new
style sheets.IlvStylingException
IlpStylable.UPDATE_COMPONENT_MASK
,
IlpStylable.UPDATE_OBJECTS_MASK
,
getStyleSheets(int)
public String[] getStyleSheets()
getStyleSheets
in interface IlvStylable
setStyleSheets(String[])
public String getStyleSheets(int index)
getStyleSheets
in interface IlvStylable
index
- The position of the cascading style sheet to return.index
-th position in the style sheet array.setStyleSheets(int, String)
public void setStyleSheetDebugMask(int mask)
setStyleSheets(java.lang.String[])
to debug
problems during configuration.setStyleSheetDebugMask
in interface IlvStylable
mask
- The debug mask, expressed as an OR combination of the
predefined flags.setStyleSheets(java.lang.String[])
,
getStyleSheetDebugMask()
,
IlvStylable.APPLIED_RULE_MASK
,
IlvStylable.BAD_CLASS_MASK
,
IlvStylable.BAD_PROP_MASK
,
IlvStylable.BAD_PROP_WITH_STACK_MASK
,
IlvStylable.CREATED_MASK
,
IlvStylable.DECL_MASK
,
IlvStylable.DECL_VALUE_MASK
,
IlvStylable.FAILED_CONVERSIONS_MASK
,
IlvStylable.TIME_REPORT_MASK
,
IlvStylable.WARNING_PROP_MASK
public int getStyleSheetDebugMask()
getStyleSheetDebugMask
in interface IlvStylable
setStyleSheetDebugMask(int)
public void addPseudoClass(IlpObject bo, String pseudo)
Pseudoclasses are used to modify the appearance of an object depending on state information, such as whether the object is selected, expanded, and so on.
The pseudoclasses expanded
, selected
, and
focus
are automatically used to customize the objects.
Add your own pseudoclasses to create new types of customization
that depend on the graphic view characteristics.
bo
- The business object.pseudo
- A string that identifies a pseudoclass
to add to the classes already associated with
the data object.IlpTreeView.addPseudoClass(ilog.cpl.model.IlpObject, java.lang.String)
public void removePseudoClass(IlpObject bo, String pseudo)
Pseudoclasses are used to modify the appearance of an object depending on state information, such as whether the object is selected, expanded, and so on.
The pseudoclasses expanded
, selected
, and
focus
are automatically used to customize the objects.
Add your own pseudoclasses to create new types of customization
that depend on the graphic view characteristics.
bo
- The business object.pseudo
- A string that identifies a pseudoclass
to move from the classes associated with
the data object.IlpTreeView.removePseudoClass(ilog.cpl.model.IlpObject, java.lang.String)
public void setProject(URL projectURL) throws IOException
The project configuration will be applied to the component, modifying the datasource and style sheet configuration.
projectURL
- New project configurationIOException
,
- if the project URL contains
invalid dataIOException
setDataSource(IlpDataSource)
,
setStyleSheets(String[])
,
getProject()
,
IlpProject
public void setProject(IlpProject proj)
The project configuration will be applied to the component, modifying the datasource and style sheet configuration.
IlpProject
,
setDataSource(IlpDataSource)
,
setStyleSheets(String[])
,
getProject()
public IlpProject getProject()
null
if a project
configuration has not been set in this component.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.