|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.painter.html.HtmlTreeSwapSelectPainter.OptionItemImpl
Simple option item implementation
| Field Summary | |
private boolean |
filter
|
private ImageModel |
image
|
private int |
indent
|
private java.lang.Object |
key
|
private java.lang.Object |
label
|
private boolean |
localize
|
private int |
maxLength
|
private java.lang.String |
style
|
private java.lang.String |
styleClass
|
private java.lang.Object |
tooltip
|
| Constructor Summary | |
HtmlTreeSwapSelectPainter.OptionItemImpl(java.lang.Object key)
Constructs an new item for a selected element without corresponding option element |
|
HtmlTreeSwapSelectPainter.OptionItemImpl(OptionsIterator iter)
Constructs an new item from the current iterator position |
|
| Method Summary | |
boolean |
filter()
Returns if the filter is activated (default=true). |
ImageModel |
getImage()
Returns the image for the current option element. |
int |
getIndent()
Gets an optional indentiation level of the current element. |
java.lang.Object |
getKey()
Gets the key of the current iteration element |
java.lang.Object |
getLabel()
Returns the label of the current element |
int |
getMaxLength()
Returns the maximum number of characters that are displayed for each option element. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns the value for the given property on the current iteration element |
java.lang.String |
getStyle()
Returns the HTML-style that can be directly specified with this attribute. |
java.lang.String |
getStyleClass()
Returns the HTML-class attribute that can be specified with this attribute |
java.lang.Object |
getTooltip()
Returns the tooltip for the current element |
boolean |
localize()
If this flag is set to true the framework interprets all
labels as resource identifiers and localize them. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private boolean filter
private ImageModel image
private int indent
private java.lang.Object key
private java.lang.Object label
private int maxLength
private java.lang.String style
private java.lang.String styleClass
private java.lang.Object tooltip
private boolean localize
| Constructor Detail |
public HtmlTreeSwapSelectPainter.OptionItemImpl(OptionsIterator iter)
iter - option element iteratorpublic HtmlTreeSwapSelectPainter.OptionItemImpl(java.lang.Object key)
key - option element key| Method Detail |
public boolean filter()
OptionItem
filter in interface OptionItemtrue if string will be html encoded;
false otherwiseOptionItem.filter()public ImageModel getImage()
OptionItem
getImage in interface OptionItemnullOptionItem.getImage()public int getIndent()
OptionItem
getIndent in interface OptionItemOptionItem.getIndent()public java.lang.Object getKey()
OptionItem
getKey in interface OptionItemOptionItem.getKey()public java.lang.Object getLabel()
OptionItem
getLabel in interface OptionItemOptionItem.getLabel()public int getMaxLength()
OptionItem
getMaxLength in interface OptionItemOptionItem.getMaxLength()public java.lang.String getStyle()
OptionItem
getStyle in interface OptionItemOptionItem.getStyle()public java.lang.String getStyleClass()
OptionItem
getStyleClass in interface OptionItemOptionItem.getStyleClass()public java.lang.Object getTooltip()
OptionItem
getTooltip in interface OptionItemnullOptionItem.getTooltip()public boolean localize()
OptionItemtrue the framework interprets all
labels as resource identifiers and localize them. If the flag is set to
false the lables are treated as string literals without
localization.
localize in interface OptionItemtrue if all labels should be localizedOptionItem.localize()public java.lang.Object getProperty(java.lang.String propertyName)
OptionItem
getProperty in interface OptionItempropertyName - the property name
OptionItem.getProperty(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||