|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.painter.html.OptionsHelp.IterBase
Baseclass for Option iterators
Field Summary | |
private java.lang.Object |
curKey
The current key |
private java.lang.Object |
curLabel
The current label |
private java.lang.Object |
current
The current bean |
private java.lang.Object |
curTooltip
The current tooltip |
private OptionListDesignModel |
designModel
The designmodel |
Constructor Summary | |
OptionsHelp.IterBase(OptionListDesignModel designModel)
Constructor |
Method Summary | |
protected static java.lang.Object |
callPropertyGet(java.lang.Object bean,
java.lang.String property)
Processes the Getter-Method on the specified Bean |
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.String |
getKeyProperty()
Returns the name of the property which returns the key of the option. |
java.lang.Object |
getLabel()
Returns the label of the current element |
java.lang.String |
getLabelProperty()
Returns the name of the property which supplies the display text of the option. |
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 |
java.lang.String |
getTooltipProperty()
Returns the name of the property which supplies the tooltip text of the option. |
boolean |
localize()
If this flag is set to true the framework interprets all
labels as resource identifiers and localize them. |
protected void |
select(java.lang.Object current)
Selects the object |
protected void |
select(java.lang.Object bean,
java.lang.Object key,
java.lang.Object label,
java.lang.Object tooltip)
Selects the object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cc.framework.ui.painter.html.OptionsIterator |
isDone, next |
Field Detail |
private OptionListDesignModel designModel
private java.lang.Object current
private java.lang.Object curKey
private java.lang.Object curLabel
private java.lang.Object curTooltip
Constructor Detail |
public OptionsHelp.IterBase(OptionListDesignModel designModel)
designModel
- the design modelMethod Detail |
public java.lang.String getKeyProperty()
public java.lang.String getLabelProperty()
public java.lang.String getTooltipProperty()
public ImageModel getImage()
getImage
in interface OptionItem
null
protected void select(java.lang.Object current)
current
- Current iteration elementprotected void select(java.lang.Object bean, java.lang.Object key, java.lang.Object label, java.lang.Object tooltip)
bean
- the current beankey
- Current keylabel
- Current labeltooltip
- Current tooltippublic java.lang.Object getProperty(java.lang.String propertyName)
OptionItem
getProperty
in interface OptionItem
propertyName
- the property name
OptionItem.getProperty(java.lang.String)
protected static java.lang.Object callPropertyGet(java.lang.Object bean, java.lang.String property)
bean
- Bean to be processedproperty
- Name of the Property
public int getIndent()
OptionItem
getIndent
in interface OptionItem
OptionItem.getIndent()
public boolean localize()
OptionItem
true
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 OptionItem
true
if all labels should be localizedOptionItem.localize()
public final java.lang.Object getKey()
OptionItem
getKey
in interface OptionItem
OptionItem.getKey()
public final java.lang.Object getLabel()
OptionItem
getLabel
in interface OptionItem
OptionItem.getLabel()
public final java.lang.Object getTooltip()
OptionItem
getTooltip
in interface OptionItem
null
OptionItem.getTooltip()
public final int getMaxLength()
OptionItem
getMaxLength
in interface OptionItem
OptionItem.getMaxLength()
public java.lang.String getStyle()
OptionItem
getStyle
in interface OptionItem
OptionItem.getStyle()
public java.lang.String getStyleClass()
OptionItem
getStyleClass
in interface OptionItem
OptionItem.getStyleClass()
public boolean filter()
OptionItem
filter
in interface OptionItem
true
if string will be html encoded;
false
otherwiseOptionItem.filter()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |