|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IlvStylable
Defines the interface for stylable components, that is, the ability
to set/get CSS, fix debug mask, and register a
PropertyChangeListener whenever a setter is called.
| Field Summary | |
|---|---|
static int |
APPLIED_RULE_MASK
Debug mask: shows new applied rules. |
static int |
BAD_CLASS_MASK
Debug mask: reports problem when creating a rendering object. |
static int |
BAD_PROP_MASK
Debug mask: shows node asked location (from the model). |
static int |
BAD_PROP_WITH_STACK_MASK
Debug mask: like BAD_PROP_MASK, plus display the stack trace of the exception. |
static int |
CREATED_MASK
Debug mask: prints objects that are created. |
static int |
DECL_MASK
Debug mask: prints the declaration key/value. |
static int |
DECL_VALUE_MASK
Debug mask: prints the actual declaration value. |
static int |
FAILED_CONVERSIONS_MASK
Debug mask: see error messages for failed conversions. |
static int |
TIME_REPORT_MASK
Debug mask: time stat when applying rules. |
static int |
WARNING_PROP_MASK
Debug mask: reports when no setter is found for a property. |
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a listener on property modification. |
int |
getStyleSheetDebugMask()
Returns the current debug level. |
String[] |
getStyleSheets()
Returns the cascaded style sheets. |
String |
getStyleSheets(int index)
Returns one of the cascaded style sheets. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a listener on property modification. |
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(String[] css)
Sets the cascading style sheets. |
| Field Detail |
|---|
static final int CREATED_MASK
setStyleSheetDebugMask(int),
Constant Field Valuesstatic final int DECL_MASK
setStyleSheetDebugMask(int),
Constant Field Valuesstatic final int DECL_VALUE_MASK
setStyleSheetDebugMask(int),
Constant Field Valuesstatic final int APPLIED_RULE_MASK
setStyleSheetDebugMask(int),
Constant Field Valuesstatic final int BAD_PROP_MASK
setStyleSheetDebugMask(int),
Constant Field Valuesstatic final int BAD_CLASS_MASK
setStyleSheetDebugMask(int),
Constant Field Valuesstatic final int WARNING_PROP_MASK
setStyleSheetDebugMask(int),
Constant Field Valuesstatic final int TIME_REPORT_MASK
setStyleSheetDebugMask(int),
Constant Field Valuesstatic final int BAD_PROP_WITH_STACK_MASK
setStyleSheetDebugMask(int),
Constant Field Valuesstatic final int FAILED_CONVERSIONS_MASK
setStyleSheetDebugMask(int),
Constant Field Values| Method Detail |
|---|
void setStyleSheets(String[] css)
throws Exception
This is a bound property. It
means the implementation should fire a PropertyChange
event to all registered PropertyChangeListeners after
setting the new value.
css - An array of strings representing the CSS document (usually
with a file or URL with .css suffix).
Exception - if there is a problem with the given
CSS. It should be an {#link
ilog.views.util.styling.IlvStylingException}, but this
interface does not constrain the type of exception. This gives
the opportunity for the implementation to have its own exception.
void setStyleSheets(int index,
String css)
throws Exception
setStyleSheets(java.lang.String[]).
It lets you change one particular style sheet file, instead of setting
the whole style sheet array.
This is a bound property. It means the implementation should
fire a PropertyChange event to all registered
PropertyChangeListeners after setting the new value.
The old and new value arguments of the event represent the whole array.
index - The index of the style sheet to replace.css - A String representing the CSS document (usually
with a file or URL with .css suffix).
Exception - if there is a problem with the given
CSS. It should be an {#link
ilog.views.util.styling.IlvStylingException}, but this
interface does not constrain the type of the exception. This gives
the opportunity for the implementation to have its own exception.setStyleSheets(java.lang.String[])String getStyleSheets(int index)
index - The position of the cascading style sheet to return.
index style sheet.String[] getStyleSheets()
void setStyleSheetDebugMask(int mask)
setStyleSheets(java.lang.String[]) to debug
problems during configuration.
This is a bound property. It means the implementation should
fire a PropertyChange event to all registered
PropertyChangeListeners after setting the new value.
mask - The debug mask, expressed as an OR combination of the
predefined flags.setStyleSheets(java.lang.String[]),
getStyleSheetDebugMask(),
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_MASKint getStyleSheetDebugMask()
setStyleSheetDebugMask(int)void addPropertyChangeListener(PropertyChangeListener listener)
listener - The listener to add.void removePropertyChangeListener(PropertyChangeListener listener)
listener - The listener to remove.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||