|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.control.Control
com.cc.framework.ui.control.TreeSwapSelectControl
Control element for the tree select element with two windows
| Field Summary | |
private java.lang.String |
body
Additional HTML Body |
private TreeSwapSelectDesignModel |
designModel
The design model |
private java.lang.Object |
optionElements
The Option elements |
private OptionListDesignModel |
options
The option list |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.Object[] |
values
Text Value |
| Fields inherited from class com.cc.framework.ui.control.Control |
log |
| Fields inherited from interface com.cc.framework.ui.model.StateModel |
PROP_CONTROL |
| Constructor Summary | |
TreeSwapSelectControl()
Constructor |
|
TreeSwapSelectControl(TreeSwapSelectDesignModel designModel)
Constructor |
|
| Method Summary | |
boolean |
filter()
Returns if the filter is activated (default=true). |
java.lang.String |
getBody()
Returns the optional HTML Body of the control |
DataModel |
getDataModel()
Returns the data model of the Control |
ControlDesignModel |
getDesignModel()
Returns the design model of the control |
java.lang.String |
getLabelLeft()
Retrieves the label for the left selection window |
java.lang.String[] |
getLabelRight()
Retrieves the label for the right selection window |
java.lang.Object |
getOptionElements()
Returns the Option elements |
OptionListDesignModel |
getOptions()
Returns the option list. |
OrientationType |
getOrientation()
Retrieves the orientation of the selection windows |
int[] |
getSize()
Returns the Size (Number of visible items) for each select box |
SortOrder |
getSortOrder()
Retrieves the sort order of the control |
StateModel |
getStateModel()
Returns the state model of the control |
java.lang.Object[] |
getValues()
Returns the keys for the selected Item |
boolean |
isMultiple()
|
void |
onSwapAll(ControlRequestContext ctx,
int direction)
Event handler for the swap all options button |
void |
onSwapSelected(ControlRequestContext ctx,
int direction)
Event handler for the swap selected options button |
void |
reset()
Resets the actual state of a control to the initial state |
boolean |
retainOrder()
|
void |
setBody(java.lang.String string)
Sets the optional HTML Body of the control. |
void |
setDesignModel(TreeSwapSelectDesignModel designModel)
Sets the DesignModel |
void |
setOptions(OptionListDesignModel options,
java.lang.Object elements)
Sets a option list. |
void |
setValues(java.lang.Object[] values)
Sets the key for the selected Item |
boolean |
showButton(ControlButton button)
This Method is called by the Painter before rendering a Button. |
boolean |
showLabels()
Checks if the labels should be visible |
| Methods inherited from class com.cc.framework.ui.control.Control |
addButton, allowAjaxRendering, execute, execute, execute, execute, execute, execute, execute, getAction, getAjaxId, getButtons, getControlName, getDesignRules, getFrameworkString, getHandler, getHandlers, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getPrincipal, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getUniqueStyleId, getWidth, isAjaxEnabled, isDisabled, isFormElement, markDirty, onHelp, setAjaxAttribute, setHandler, setPrincipal, setValue, show, synchronizeState, synchronizeState |
| 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.StateModel |
synchronizeState |
| Field Detail |
private static final long serialVersionUID
private TreeSwapSelectDesignModel designModel
private java.lang.Object[] values
private OptionListDesignModel options
private java.lang.String body
private java.lang.Object optionElements
| Constructor Detail |
public TreeSwapSelectControl()
public TreeSwapSelectControl(TreeSwapSelectDesignModel designModel)
designModel - SelectDesignModel| Method Detail |
public void setDesignModel(TreeSwapSelectDesignModel designModel)
designModel - SwapSelectDesignModelpublic DataModel getDataModel()
Control
getDataModel in class ControlControl.getDataModel()public ControlDesignModel getDesignModel()
Control
getDesignModel in class ControlControl.getDesignModel()public StateModel getStateModel()
Control
getStateModel in class ControlControl.getStateModel()public void reset()
StateModel
reset in interface StateModelStateModel.reset()public java.lang.Object[] getValues()
TreeSwapSelectDataModel
getValues in interface TreeSwapSelectDataModelTreeSwapSelectDataModel.getValues()public void setValues(java.lang.Object[] values)
TreeSwapSelectDataModel
setValues in interface TreeSwapSelectDataModelvalues - Values (item to be selected)TreeSwapSelectDataModel.setValues(java.lang.Object[])public OptionListDesignModel getOptions()
public void setOptions(OptionListDesignModel options,
java.lang.Object elements)
options - The options to setelements - The Option elementspublic java.lang.Object getOptionElements()
public int[] getSize()
public java.lang.String getBody()
public void setBody(java.lang.String string)
string - HTML Stringpublic java.lang.String getLabelLeft()
public java.lang.String[] getLabelRight()
public boolean showLabels()
true if the labels should be visiblepublic boolean retainOrder()
public boolean isMultiple()
true when the control should be rendered
as a multiple swap select control with multiple shift targetspublic OrientationType getOrientation()
public SortOrder getSortOrder()
public boolean filter()
true if string will be HTML encoded;
false otherwisepublic boolean showButton(ControlButton button)
Control
showButton in class Controlbutton - ControlButton
Control.showButton(com.cc.framework.ui.control.ControlButton)
public void onSwapSelected(ControlRequestContext ctx,
int direction)
throws java.lang.Exception
ctx - ControlRequestContextdirection - the direction where to move selected elements
java.lang.Exception - is thrown when an error occurs
public void onSwapAll(ControlRequestContext ctx,
int direction)
throws java.lang.Exception
ctx - ControlRequestContextdirection - the direction where to move all elements
java.lang.Exception - is thrown when an error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||