|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.model.imp.ClientHandlerImp com.cc.framework.ui.model.imp.ColumnDesignModelImp com.cc.framework.ui.model.imp.ColumnSelectDesignModelImp
Design Model implementation for the select column
Field Summary | |
private DeferredValue |
empty
An optional text to prompt the user for selecting an option of the list. |
private DeferredValue |
keyProperty
The property for the key |
private DeferredValue |
labelProperty
The property for the label |
private boolean |
localize
Specifies if all String should be treated as Resource Identifiers and must be localized |
private boolean |
multiple
Indicates that multiple selections is allowed. |
private DeferredValue |
optionsProperty
Property for retrieving a individual option list for each row bean |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.Object |
sharedOptions
A option list that is shared among all row beans |
private boolean |
showRoot
Shows or hides the root of a TreeNodeDatamodel option list |
private DeferredValue |
size
Number of character positions to allocate. |
Fields inherited from class com.cc.framework.ui.model.imp.ColumnDesignModelImp |
|
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
|
Constructor Summary | |
ColumnSelectDesignModelImp()
|
Method Summary | |
java.lang.String |
getEmpty()
Returns the label of an additional empty-entry |
java.lang.String |
getKeyProperty()
Returns the name of the property which returns the key of the option. |
java.lang.String |
getLabelProperty()
Returns the name of the property which supplies the display text of the option. |
java.lang.String |
getOptionsProperty()
Returns the name of the property which returns the individual OptionListDataModel for each row of the list |
java.lang.Object |
getSharedOptions()
Returns the OptionListDataModel that is shared among all rows of the list |
int |
getSize()
Returns the number of visible characters for an input/text field. |
boolean |
isMultiple()
Indicates that multiple selections is allowed. |
boolean |
localize()
If this flag is set to true the framework interprets all
labels as resource identifiers and localize them. |
void |
setEmpty(java.lang.String empty)
Sets the label of an additional empty-entry |
void |
setKeyProperty(java.lang.String keyProperty)
Sets the name of the property which returns the key of the option. |
void |
setLabelProperty(java.lang.String labelProperty)
Sets the name of the property which supplies the display text of the option. |
void |
setLocalize(boolean localize)
If this flag is set to true the framework interprets all
labels as resource identifiers and localize them. |
void |
setMultiple(boolean multiple)
Indicates that multiple selections is allowed. |
void |
setOptionsProperty(java.lang.String property)
Specifies the name of the property which returns the OptionListDataModel |
void |
setSharedOptions(java.lang.Object elements)
Sets a option list that is shared among all rows of the list |
void |
setSize(int size)
Sets the size of the input field. |
void |
setSize(java.lang.String size)
Sets the size of the input field. |
boolean |
showRoot()
Returns if the root element should be displayed (for TreeDataModel options) |
void |
showRoot(boolean show)
Specifies whether the root of the tree element should be displayed (for TreeDataModel options). |
Methods inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
evaluate, getHandlers, setHandler |
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.model.ClientHandler |
getHandler, getHandlers, setHandler |
Methods inherited from interface com.cc.framework.ui.model.AccessControlled |
getPermission, show |
Methods inherited from interface com.cc.framework.ui.model.ActionBehavior |
isAjaxEnabled |
Methods inherited from interface com.cc.framework.ui.model.AjaxSupport |
enableAjax, isAjaxEnabled |
Methods inherited from interface com.cc.framework.ui.model.OptionListDesignModel |
filter, getImageMap, getMaxLength, getProperty, getStyle, getStyleClass, getTooltipProperty, setFilter, setImageMap, setMaxLength, setProperty, setStyle, setStyleClass, setTooltipProperty |
Field Detail |
private static final long serialVersionUID
private boolean multiple
private DeferredValue keyProperty
private DeferredValue labelProperty
private DeferredValue optionsProperty
private java.lang.Object sharedOptions
private DeferredValue empty
private DeferredValue size
private boolean showRoot
private boolean localize
Constructor Detail |
public ColumnSelectDesignModelImp()
Method Detail |
public java.lang.String getEmpty()
OptionListDesignModel
getEmpty
in interface OptionListDesignModel
OptionListDesignModel.getEmpty()
public java.lang.String getOptionsProperty()
ColumnSelectDesignModel
getOptionsProperty
in interface ColumnSelectDesignModel
ColumnSelectDesignModel.getOptionsProperty()
public void setEmpty(java.lang.String empty)
OptionListDesignModel
setEmpty
in interface OptionListDesignModel
empty
- Label for the additional empty-entryOptionListDesignModel.setEmpty(java.lang.String)
public void setOptionsProperty(java.lang.String property)
ColumnSelectDesignModel
setOptionsProperty
in interface ColumnSelectDesignModel
property
- The name of the propertyColumnSelectDesignModel.setOptionsProperty(java.lang.String)
public void setSharedOptions(java.lang.Object elements)
ColumnSelectDesignModel
setSharedOptions
in interface ColumnSelectDesignModel
elements
- The Option elementsColumnSelectDesignModel.setSharedOptions(java.lang.Object)
public java.lang.Object getSharedOptions()
ColumnSelectDesignModel
getSharedOptions
in interface ColumnSelectDesignModel
ColumnSelectDesignModel.getSharedOptions()
public java.lang.String getKeyProperty()
OptionListDesignModel
getKeyProperty
in interface OptionListDesignModel
OptionListDesignModel.getKeyProperty()
public java.lang.String getLabelProperty()
OptionListDesignModel
getLabelProperty
in interface OptionListDesignModel
OptionListDesignModel.getLabelProperty()
public void setKeyProperty(java.lang.String keyProperty)
OptionListDesignModel
setKeyProperty
in interface OptionListDesignModel
keyProperty
- Name of the propertyOptionListDesignModel.setKeyProperty(java.lang.String)
public void setLabelProperty(java.lang.String labelProperty)
OptionListDesignModel
setLabelProperty
in interface OptionListDesignModel
labelProperty
- Name of the propertyOptionListDesignModel.setLabelProperty(java.lang.String)
public int getSize()
ColumnSelectDesignModel
getSize
in interface ColumnSelectDesignModel
ColumnSelectDesignModel.getSize()
public boolean isMultiple()
ColumnSelectDesignModel
isMultiple
in interface ColumnSelectDesignModel
true
for a multiple selection controlColumnSelectDesignModel.isMultiple()
public void setMultiple(boolean multiple)
ColumnSelectDesignModel
setMultiple
in interface ColumnSelectDesignModel
multiple
- for multiple selection- See Also:
ColumnSelectDesignModel.setMultiple(boolean)
public void setSize(int size)
ColumnSelectDesignModel
setSize
in interface ColumnSelectDesignModel
size
- The size of the input field.ColumnSelectDesignModel.setSize(int)
public void setSize(java.lang.String size)
ColumnSelectDesignModel
setSize
in interface ColumnSelectDesignModel
size
- The size of the input field.ColumnSelectDesignModel.setSize(java.lang.String)
public boolean localize()
OptionListDesignModel
true
the framework interprets all
labels as resource identifiers and localize them. If the flag is set to
false
the labels are treated as string literals without
localization.
localize
in interface OptionListDesignModel
true
if all labels should be localizedOptionListDesignModel.localize()
public void setLocalize(boolean localize)
OptionListDesignModel
true
the framework interprets all
labels as resource identifiers and localize them. If the flag is set to
false
the labels are treated as string literals without
localization.
setLocalize
in interface OptionListDesignModel
localize
- Localization setting for the option listOptionListDesignModel.setLocalize(boolean)
public boolean showRoot()
OptionListDesignModel
showRoot
in interface OptionListDesignModel
true
if the root element should be
displayed; false
otherwiseOptionListDesignModel.showRoot()
public void showRoot(boolean show)
OptionListDesignModel
showRoot
in interface OptionListDesignModel
show
- true
if the root element should be displayedOptionListDesignModel.showRoot(boolean)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |