ilog.cpl.css
Interface IlpStylable

All Superinterfaces:
IlvStylable
All Known Subinterfaces:
IlpGraphicComponent, IlpInteractiveGraphicComponent, IlpStylableAdapter, IlpStylableGraphicView, IlpStylableViewsView
All Known Implementing Classes:
IlpAbstractTreeAdapter, IlpContainmentTreeAdapter, IlpEquipment, IlpEquipmentAdapter, IlpEquipmentView, IlpGraphView, IlpListAdapter, IlpNetwork, IlpNetworkAdapter, IlpNetworkView, IlpTable, IlpTableListAdapter, IlpTableView, IlpTree, IlpTreeView

public interface IlpStylable
extends IlvStylable

Defines the interface for ILOG JTGO stylable components, that is, the ability to set/get a CSS and fix a debug mask.

Since:
JTGO 4.0

Field Summary
static int UPDATE_ALL_MASK
          Update mask: updates all elements.
static int UPDATE_COMPONENT_MASK
          Update mask: updates the component configuration.
static int UPDATE_NONE_MASK
          Update mask: do not update neither the component nor the object configuration.
static int UPDATE_OBJECTS_MASK
          Update mask: updates the objects.
 
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
 
Method Summary
 void setStyleSheets(int index, String css, int updateMask)
          Changes one of the cascading style sheets.
 void setStyleSheets(String[] css, int updateMask)
          Sets the cascading style sheets.
 
Methods inherited from interface ilog.views.util.styling.IlvStylable
addPropertyChangeListener, getStyleSheetDebugMask, getStyleSheets, getStyleSheets, removePropertyChangeListener, setStyleSheetDebugMask, setStyleSheets, setStyleSheets
 

Field Detail

UPDATE_NONE_MASK

static final int UPDATE_NONE_MASK
Update mask: do not update neither the component nor the object configuration. In this case, the component configuration is not applied. And the node configuration is only applied the next time the object is customized, for instance, when an attribute value changes.

Since:
JTGO 4.5
See Also:
setStyleSheets(java.lang.String[], int), Constant Field Values

UPDATE_COMPONENT_MASK

static final int UPDATE_COMPONENT_MASK
Update mask: updates the component configuration.

See Also:
setStyleSheets(java.lang.String[], int), Constant Field Values

UPDATE_OBJECTS_MASK

static final int UPDATE_OBJECTS_MASK
Update mask: updates the objects.

See Also:
setStyleSheets(java.lang.String[], int), Constant Field Values

UPDATE_ALL_MASK

static final int UPDATE_ALL_MASK
Update mask: updates all elements.

See Also:
setStyleSheets(java.lang.String[], int), Constant Field Values
Method Detail

setStyleSheets

void setStyleSheets(String[] css,
                    int updateMask)
                    throws IlvStylingException
Sets the cascading style sheets.

Each element can be a URL, a filename, or directly the style sheet string. The order is by priority (the last CSS takes precedence).

Parameters:
css - An array of strings containing the URLs or the file names of CSS files (usually with a .css suffix).
updateMask - A flag that indicates whether the style sheet applies to the component configuration and/or the business objects.
Throws:
IlvStylingException
See Also:
UPDATE_COMPONENT_MASK, UPDATE_OBJECTS_MASK

setStyleSheets

void setStyleSheets(int index,
                    String css,
                    int updateMask)
                    throws IlvStylingException
Changes one of the cascading style sheets.

This method is an alternative to IlvStylable.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 to the view and to all the representation objects that are already displayed in the view.

Parameters:
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 style sheet applies to the component configuration and/or the business objects.
Throws:
IlvStylingException
See Also:
UPDATE_COMPONENT_MASK, UPDATE_OBJECTS_MASK


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.