|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.gui.dialog.DialogControlImpl info.magnolia.cms.gui.dialog.DialogBox info.magnolia.cms.gui.dialog.DialogMultiSelect
public class DialogMultiSelect
Control to select multiple values. The values can get stored as list, in JSON format or as a multiple values
Field Summary | |
---|---|
static String |
CONFIG_SAVE_MODE
Set the save mode |
static String |
SAVE_MODE_JSON
The values are saved as a single json string |
static String |
SAVE_MODE_LIST
The values are saved as semicolon separated list |
static String |
SAVE_MODE_MULTIPLE
The values are saved a properties |
Fields inherited from class info.magnolia.cms.gui.dialog.DialogBox |
---|
BOXTYPE_1COL, BOXTYPE_2COLS |
Fields inherited from class info.magnolia.cms.gui.dialog.DialogControlImpl |
---|
DEFAULT_VALUE_PROPERTY, SESSION_ATTRIBUTENAME_DIALOGOBJECT, SESSION_ATTRIBUTENAME_DIALOGOBJECT_REMOVE, VALIDATION_PATTERN_PROPERTY, value |
Constructor Summary | |
---|---|
DialogMultiSelect()
|
Method Summary | |
---|---|
void |
drawHtml(Writer out)
Render the Html using a template |
String |
getAddButton()
The button to add a new row |
String |
getChooseButton()
If this control has a choose button |
String |
getDeleteButton()
Button for deleting a row |
String |
getGetObjectFunction()
JS function used to create an object out of the input fields |
String |
getHiddenFieldName()
If the values are saved using the valueType multiple, we can not use the same name for the hidden field we use for persisting the data. |
String |
getInnerHtml()
Called by the template. |
String |
getJSON()
Create the object to initialize the table |
String |
getNewObjectFunction()
JS function used to create a new empty object |
String |
getSaveInfo()
|
boolean |
isSaveAsJSON()
|
boolean |
isSaveAsList()
|
Methods inherited from class info.magnolia.cms.gui.dialog.DialogBox |
---|
drawHtmlPost, drawHtmlPre, getBoxType, getHtmlDescription, setBoxType |
Methods inherited from class info.magnolia.cms.gui.dialog.DialogControlImpl |
---|
addOption, addSub, clearWebsiteNode, drawHtmlPostSubs, drawHtmlPreSubs, drawSubs, getConfigValue, getConfigValue, getDescription, getId, getLabel, getMessage, getMessage, getMessages, getName, getOptions, getParent, getRequest, getResponse, getStorageNode, getSub, getSubs, getTopParent, getValidationPattern, getValue, getValues, getWebsiteNode, init, isRequired, readValue, readValues, removeSessionAttribute, setConfig, setConfig, setConfig, setDescription, setLabel, setName, setOptions, setRequired, setSaveInfo, setSessionAttribute, setTopParent, setValidationMessage, setValue, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SAVE_MODE_MULTIPLE
public static final String SAVE_MODE_JSON
public static final String SAVE_MODE_LIST
public static final String CONFIG_SAVE_MODE
Constructor Detail |
---|
public DialogMultiSelect()
Method Detail |
---|
public void drawHtml(Writer out) throws IOException
drawHtml
in interface DialogControl
drawHtml
in class DialogControlImpl
out
- Writer
IOException
- exceptions thrown when writing to the Writer can be safely rethrown by the dialogDialogControl.drawHtml(Writer)
public String getAddButton()
public String getChooseButton()
public String getDeleteButton()
public String getInnerHtml()
public String getGetObjectFunction()
public String getNewObjectFunction()
public String getJSON()
public String getSaveInfo()
public boolean isSaveAsList()
public boolean isSaveAsJSON()
public String getHiddenFieldName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |