|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.model.imp.ClientHandlerImp
com.cc.framework.ui.model.imp.ControlDesignModelImp
com.cc.framework.ui.model.imp.SwapSelectDesignModelImp
Designmodel for the SwapSelectControl
| Field Summary | |
private ButtonContainer |
buttons
The users permission which is necessary to see any buttons |
private boolean |
filter
Specifies if all String should be converted into there HTML representation |
private java.lang.String |
labelLeft
Label for the left selection window |
private java.lang.String[] |
labelRight
Label for the right selection window |
private boolean |
multiple
Defines the control as a multi swap select control |
private OrientationType |
orientation
Specifies the orientation of the selection windows: horizontal = from top to bottom vertical = from left to right |
private boolean |
retainOrder
Tells the control to retain the sort order in the "from" option list |
private static long |
serialVersionUID
Serial Version UID |
private int[] |
size
Number of character positions to allocate. |
private SortOrder |
sortOrder
Specifies the sort order: none = no sort order asc = ascending sort order desc = descending sort order |
| Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp |
|
| Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
|
| Constructor Summary | |
SwapSelectDesignModelImp()
Constructor |
|
| Method Summary | |
boolean |
filter()
Returns if the filter is activated (default=true). |
Permission |
getButtonPermission(ControlButton button)
Retrieves the permission for the given button |
java.lang.String |
getLabelLeft()
Retrieves the label for the left selection window |
java.lang.String[] |
getLabelRight()
Retrieves the label for the right selection window |
OrientationType |
getOrientation()
Retrieves the orientation of the selection windows |
int[] |
getSize()
Returns the number of visible items for each individual select box. |
SortOrder |
getSortOrder()
Retrieves the sort order of the control |
boolean |
isMultiple()
|
boolean |
retainOrder()
|
void |
setButtonPermission(ControlButton button,
Permission permission)
Sets whether a command button should be displayed by specifying an Access Control List. |
void |
setFilter(boolean filter)
Activates the HTML encoding (filter). |
void |
setLabelLeft(java.lang.String label)
Sets the label for the left selection window |
void |
setLabelRight(java.lang.String label)
Sets the label for the right selection window |
void |
setLabelRight(java.lang.String[] label)
Sets the label for the right selection window |
void |
setMultiple(boolean multiple)
Tells the control behave as a multiple swap select control with multiple shift targets. the number of targets is specified by the number of array elements of the data model. |
void |
setOrientation(OrientationType orientation)
Specifies the orientation of the selection windows: horizontal = from top to bottom vertical = from left to right |
void |
setRetainOrder(boolean retainOrder)
Tells the control to retain the sort order in the "from" option list |
void |
setSize(int size)
Sets the size of the input field. |
void |
setSize(int[] size)
Sets the size of the input field. |
void |
setSortOrder(SortOrder sortOrder)
Specifies the sort order: none = no sort order asc = ascending sort order desc = descending sort order |
boolean |
showButton(ControlButton button,
Principal principal)
Checks if the button can be displayed. |
| Methods inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp |
addDesignRule, enableAjax, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isAjaxEnabled, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction, setWidth, show |
| Methods inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
evaluate, getHandler, 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.ControlDesignModel |
addDesignRule, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction, setWidth |
| 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 |
| Field Detail |
private static final long serialVersionUID
private int[] size
private java.lang.String labelLeft
private java.lang.String[] labelRight
private boolean filter
private boolean retainOrder
private boolean multiple
private OrientationType orientation
private SortOrder sortOrder
private ButtonContainer buttons
| Constructor Detail |
public SwapSelectDesignModelImp()
| Method Detail |
public int[] getSize()
SwapSelectDesignModel
getSize in interface SwapSelectDesignModelSwapSelectDesignModel.getSize()public void setSize(int size)
SwapSelectDesignModel
setSize in interface SwapSelectDesignModelsize - The size of the input field.SwapSelectDesignModel.setSize(int)public void setSize(int[] size)
SwapSelectDesignModel
setSize in interface SwapSelectDesignModelsize - The size of the input field.SwapSelectDesignModel.setSize(int[])public java.lang.String getLabelLeft()
SwapSelectDesignModel
getLabelLeft in interface SwapSelectDesignModelSwapSelectDesignModel.getLabelLeft()public java.lang.String[] getLabelRight()
SwapSelectDesignModel
getLabelRight in interface SwapSelectDesignModelSwapSelectDesignModel.getLabelRight()public OrientationType getOrientation()
SwapSelectDesignModel
getOrientation in interface SwapSelectDesignModelSwapSelectDesignModel.getOrientation()public void setLabelLeft(java.lang.String label)
SwapSelectDesignModel
setLabelLeft in interface SwapSelectDesignModellabel - the labelSwapSelectDesignModel.setLabelLeft(java.lang.String)public void setLabelRight(java.lang.String label)
SwapSelectDesignModel
setLabelRight in interface SwapSelectDesignModellabel - the labelSwapSelectDesignModel.setLabelRight(java.lang.String)public void setLabelRight(java.lang.String[] label)
SwapSelectDesignModel
setLabelRight in interface SwapSelectDesignModellabel - the labelSwapSelectDesignModel.setLabelRight(java.lang.String[])public void setOrientation(OrientationType orientation)
SwapSelectDesignModel
setOrientation in interface SwapSelectDesignModelorientation - The orientation of the controlSwapSelectDesignModel.setOrientation(com.cc.framework.ui.OrientationType)public void setSortOrder(SortOrder sortOrder)
SwapSelectDesignModel
setSortOrder in interface SwapSelectDesignModelsortOrder - The sort order of the controlSwapSelectDesignModel.setSortOrder(com.cc.framework.common.SortOrder)public SortOrder getSortOrder()
SwapSelectDesignModel
getSortOrder in interface SwapSelectDesignModelSwapSelectDesignModel.getSortOrder()public boolean filter()
SwapSelectDesignModel
filter in interface SwapSelectDesignModeltrue if string will be HTML encoded;
false otherwiseSwapSelectDesignModel.filter()public void setFilter(boolean filter)
SwapSelectDesignModel
setFilter in interface SwapSelectDesignModelfilter - true if strings should be HTML encoded; false
otherwiseSwapSelectDesignModel.setFilter(boolean)public boolean retainOrder()
retainOrder in interface SwapSelectDesignModeltrue when the control should retain the
sort order in the "from" option listSwapSelectDesignModel.retainOrder()public void setMultiple(boolean multiple)
SwapSelectDesignModel
setMultiple in interface SwapSelectDesignModelmultiple - true if the element should act as a multiple
swap selectSwapSelectDesignModel.setMultiple(boolean)public boolean isMultiple()
isMultiple in interface SwapSelectDesignModeltrue when the control should be rendered
as a multiple swap select control with multiple shift targetsSwapSelectDesignModel.isMultiple()public void setRetainOrder(boolean retainOrder)
SwapSelectDesignModel
setRetainOrder in interface SwapSelectDesignModelretainOrder - true if the element should retain the sort
orderSwapSelectDesignModel.setRetainOrder(boolean)public Permission getButtonPermission(ControlButton button)
ButtonContainer
getButtonPermission in interface ButtonContainerbutton - Button constant
nullButtonContainer.getButtonPermission(com.cc.framework.ui.control.ControlButton)
public boolean showButton(ControlButton button,
Principal principal)
ButtonContainer
showButton in interface ButtonContainerbutton - The Button to queryprincipal - The principal object
true if the button should be displayedButtonContainer.showButton(com.cc.framework.ui.control.ControlButton,
com.cc.framework.security.Principal)
public void setButtonPermission(ControlButton button,
Permission permission)
ButtonContainer
setButtonPermission in interface ButtonContainerbutton - The Button to querypermission - PermissionButtonContainer.setButtonPermission(com.cc.framework.ui.control.ControlButton,
com.cc.framework.security.Permission)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||