|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.dualselector.html.DualSelector
public abstract class DualSelector
Abstract DualSelector class used for displaying two components and selecting/moving items from a source to a target component.
Default Component names:
<nameOfDualSelector>_sourceLabel
<nameOfDualSelector>_targetLabel
<nameOfDualSelector>_rightButton
<nameOfDualSelector>_rightAllButton
<nameOfDualSelector>_leftButton
<nameOfDualSelector>_leftAllButton
<nameOfDualSelector>_upButton
<nameOfDualSelector>_downButton
<nameOfDualSelector>_submitButton
DualListSelector
,
TreeListSelector
,
DualTreeSelector
,
TreeView
,
ListBox
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
RB_KEY
The RB_KEY for internationalization |
Fields inherited from class com.sas.servlet.tbeans.dualselector.BaseDualSelector |
---|
imageLocation |
Fields inherited from interface com.sas.servlet.tbeans.dualselector.html.DualSelectorStyleKeysInterface |
---|
DUALSELECTOR_BUTTON, DUALSELECTOR_CONTAINER, DUALSELECTOR_SOURCE_CONTAINER, DUALSELECTOR_SOURCE_LABEL_AREA, DUALSELECTOR_SOURCE_LISTBOX, DUALSELECTOR_TARGET_CONTAINER, DUALSELECTOR_TARGET_LABEL_AREA, DUALSELECTOR_TARGET_LISTBOX |
Fields inherited from interface com.sas.servlet.tbeans.dualselector.DualSelectorKeysInterface |
---|
DUALSELECTOR, DUALSELECTOR_DOWN_BUTTON, DUALSELECTOR_LEFT_ALL_BUTTON, DUALSELECTOR_LEFT_BUTTON, DUALSELECTOR_RIGHT_ALL_BUTTON, DUALSELECTOR_RIGHT_BUTTON, DUALSELECTOR_SOURCE, DUALSELECTOR_SOURCE_LABEL, DUALSELECTOR_SUBMIT_BUTTON, DUALSELECTOR_TARGET, DUALSELECTOR_TARGET_LABEL, DUALSELECTOR_UP_BUTTON |
Constructor Summary | |
---|---|
DualSelector()
Constructor |
|
DualSelector(java.lang.String name)
Constructor |
Method Summary | |
---|---|
java.util.HashMap |
getAdditionalParameters()
Returns an HashMap containing additional parameters that should be added to the form used to perform the various actions on the tbean. |
protected BaseButton |
getDefaultButton()
Returns a default button used for this dual selector. |
protected java.lang.String |
getDefaultButtonTemplate()
|
Form |
getDefaultFormObject()
Gets the default form object to be used by the DualListSelector. |
protected BaseLabel |
getDefaultLabel()
Returns the default label used for the target and source components. |
protected java.lang.String |
getDefaultMoveButtonTemplate()
|
protected java.lang.String |
getDefaultMoveUpDownButtonTemplate()
|
protected java.lang.String |
getDefaultSelectorTemplate()
|
java.lang.String |
getDefaultTemplate()
Returns the default template used for this selector |
Form |
getFormObject()
Gets the form object to be used by the DualListSelector. |
protected abstract java.lang.String |
getMoveAllToTarget()
Returns the JavaScript function name for moving all items from the source component to the target. |
protected abstract java.lang.String |
getMoveItemsDown()
Returns the JavaScript function name for moving item(s) down on the target component. |
protected abstract java.lang.String |
getMoveItemsUp()
Returns the JavaScript function name for moving item(s) up on the target component. |
protected abstract java.lang.String |
getMoveToTarget()
Returns the JavaScript function name for moving item(s) from the source component to the target. |
java.lang.String |
getPostDownTrigger()
Returns a name of JavaScript function name which will be executed after an item is moved down in the target component. |
java.lang.String |
getPostSourceTrigger()
Returns a name of JavaScript function name which will be executed after an item is moved from the target to the source list. |
java.lang.String |
getPostTargetTrigger()
Returns a name of JavaScript function name which will be executed after an item is moved from the source to the target list. |
java.lang.String |
getPostUpTrigger()
Returns a name of JavaScript function name which will be executed after an item is moved up in the target component. |
java.lang.String |
getPreDownTrigger()
Returns a name of JavaScript function name which will be executed before an item is moved down in the target component. |
java.lang.String |
getPreSourceTrigger()
Sets a JavaScript function name which will be executed before an item is moved from target to source. |
java.lang.String |
getPreTargetTrigger()
Returns a name of JavaScript function name which will be executed before an item is moved from the source to the target list. |
java.lang.String |
getPreUpTrigger()
Returns a name of JavaScript function name which will be executed before an item is moved up in the target component. |
protected abstract java.lang.String |
getRemoveAllFromTarget()
Returns the JavaScript function name for removing all items from the target component. |
protected abstract java.lang.String |
getRemoveFromTarget()
Returns the JavaScript function name for removing item(s) from the target component. |
protected java.lang.String |
getSourceComponentName()
Returns the name of the source component |
protected abstract java.lang.String |
getSubmitAction()
Returns the JavaScript function name for submitting the form |
protected java.lang.String |
getTargetComponentName()
Returns the name of the target component |
void |
initializeSelector()
|
boolean |
isFormEnabled()
Determines if the tbean should render its formObject. |
void |
setAdditionalParameter(java.lang.String name,
java.lang.String value)
Sets an additional parameter to be added to the form used to perform the various actions on the TableView. |
void |
setAdditionalParameters(java.util.HashMap map)
Sets an HashMap containing additional parameters that should be added to the form used to perform the various actions on the tbean. |
protected void |
setDefaultComponentNames()
Sets default names for the components that are in this DualSelector. |
void |
setFormEnabled(boolean value)
Sets whether the tbean should render its formObject. |
void |
setFormObject(Form form)
Sets the form object to be used by the DualListSelector. |
void |
setId(java.lang.String value)
Sets the id of the component. |
void |
setName(java.lang.String value)
Deprecated. Use setId() method. |
void |
setPostDownTrigger(java.lang.String value)
Sets a JavaScript function name which will be executed after an item is moved down in the target component. |
void |
setPostSourceTrigger(java.lang.String value)
Sets a function name which will be executed after an item is moved from target to source. |
void |
setPostTargetTrigger(java.lang.String value)
Sets a JavaScript function name which will be executed after an item is moved from source to target. |
void |
setPostUpTrigger(java.lang.String value)
Sets a JavaScript function name which will be executed after an item is moved up in the target component. |
void |
setPreDownTrigger(java.lang.String value)
Sets a JavaScript function name which will be executed before an item is moved down in the target component. |
void |
setPreSourceTrigger(java.lang.String value)
Sets a JavaScript function name which will be executed before an item is moved from target to source. |
void |
setPreTargetTrigger(java.lang.String value)
Sets a JavaScript function name which will be executed before an item is moved from source to target. |
void |
setPreUpTrigger(java.lang.String value)
Sets a JavaScript function name which will be executed before an item is moved up in the target component. |
protected void |
setSelectorDefaults()
Sets default images, and JavaScript events for the components. |
Methods inherited from class com.sas.servlet.tbeans.dualselector.BaseDualSelector |
---|
getImageLocation, getMultipleSelections, getSize, getSourceLabel, getTargetLabel, getTargetMaximumCount, isStaticSourceAllowed, isSubmitButtonVisible, isTargetButtonsVisible, isTargetDuplicateAllowed, isTransferAllButtonVisible, setImageLocation, setMultipleSelections, setSize, setStaticSourceAllowed, setSubmitButtonVisible, setTargetButtonsVisible, setTargetDuplicateAllowed, setTargetMaximumCount, setTransferAllButtonVisible |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderInterface |
---|
getRequest |
Field Detail |
---|
public static final java.lang.String RB_KEY
Constructor Detail |
---|
public DualSelector()
public DualSelector(java.lang.String name)
name
- The field nameMethod Detail |
---|
protected abstract java.lang.String getRemoveFromTarget()
protected abstract java.lang.String getRemoveAllFromTarget()
protected abstract java.lang.String getMoveToTarget()
protected abstract java.lang.String getMoveItemsUp()
protected abstract java.lang.String getMoveItemsDown()
protected abstract java.lang.String getMoveAllToTarget()
protected abstract java.lang.String getSubmitAction()
protected void setSelectorDefaults()
protected void setDefaultComponentNames()
public void setPostSourceTrigger(java.lang.String value)
value
- The postSourceTrigger function name.getPostSourceTrigger()
public java.lang.String getPostSourceTrigger()
setPostSourceTrigger(String)
public void setPreSourceTrigger(java.lang.String value)
getPreSourceTrigger()
public java.lang.String getPreSourceTrigger()
setPreSourceTrigger(String)
public java.lang.String getPostTargetTrigger()
setPostTargetTrigger(String)
public void setPostTargetTrigger(java.lang.String value)
value
- The postTargetTrigger function name.public java.lang.String getPreTargetTrigger()
public void setPreTargetTrigger(java.lang.String value)
value
- The preTargetTrigger function name.public java.lang.String getPostUpTrigger()
setPostUpTrigger(String)
public void setPostUpTrigger(java.lang.String value)
value
- The postTargetTrigger function name.public java.lang.String getPreUpTrigger()
public void setPreUpTrigger(java.lang.String value)
value
- The preTargetTrigger function name.public java.lang.String getPostDownTrigger()
setPostDownTrigger(String)
public void setPostDownTrigger(java.lang.String value)
value
- The postTargetTrigger function name.public java.lang.String getPreDownTrigger()
public void setPreDownTrigger(java.lang.String value)
value
- The preTargetTrigger function name.public void setFormObject(Form form)
setFormObject
in interface FormViewInterface
form
- the form objectgetFormObject()
public Form getFormObject()
getFormObject
in interface FormViewInterface
setFormObject(Form)
public Form getDefaultFormObject()
getDefaultFormObject
in interface FormViewInterface
public java.util.HashMap getAdditionalParameters()
getAdditionalParameters
in interface FormViewInterface
HashMap
public void setAdditionalParameters(java.util.HashMap map)
setAdditionalParameters
in interface FormViewInterface
map
- HashMap objectHashMap
public void setAdditionalParameter(java.lang.String name, java.lang.String value)
setAdditionalParameter
in interface FormViewInterface
name
- name of the list itemvalue
- value of the list itemHashMap
public boolean isFormEnabled()
isFormEnabled
in interface FormViewInterface
public void setFormEnabled(boolean value)
setFormEnabled
in interface FormViewInterface
value
- true if the formObject should be rendered by the tbeanprotected BaseButton getDefaultButton()
BaseDualSelector
getDefaultButton
in class BaseDualSelector
protected BaseLabel getDefaultLabel()
BaseDualSelector
getDefaultLabel
in class BaseDualSelector
protected java.lang.String getDefaultMoveButtonTemplate()
protected java.lang.String getDefaultMoveUpDownButtonTemplate()
protected java.lang.String getDefaultButtonTemplate()
protected java.lang.String getDefaultSelectorTemplate()
public java.lang.String getDefaultTemplate()
getDefaultTemplate
in interface TemplateInterface
getDefaultTemplate
in class BaseCompositeTransformation
protected java.lang.String getSourceComponentName()
protected java.lang.String getTargetComponentName()
public void setName(java.lang.String value)
setName
in interface TransformationInterface
setName
in class BaseTransformation
value
- The name of the componentsetId(String)
public void setId(java.lang.String value)
setId
in interface TransformationInterface
setId
in class BaseCompositeTransformation
value
- The id of the componentpublic void initializeSelector()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |