|
||||||||||
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
public abstract class DialogControlImpl
Field Summary | |
---|---|
static String |
DEFAULT_VALUE_PROPERTY
|
static String |
SESSION_ATTRIBUTENAME_DIALOGOBJECT
|
static String |
SESSION_ATTRIBUTENAME_DIALOGOBJECT_REMOVE
|
static String |
VALIDATION_PATTERN_PROPERTY
|
protected String |
value
|
Constructor Summary | |
---|---|
DialogControlImpl()
|
Method Summary | |
---|---|
void |
addOption(Object o)
|
void |
addSub(Object o)
|
protected void |
clearWebsiteNode()
Deprecated. websitenode should only be set in init(), this is a workaround used in DialogDate |
void |
drawHtml(Writer out)
Actually draw the dialog content. |
protected void |
drawHtmlPostSubs(Writer out)
|
protected void |
drawHtmlPreSubs(Writer out)
|
protected void |
drawSubs(Writer out)
|
String |
getConfigValue(String key)
|
String |
getConfigValue(String key,
String nullValue)
|
String |
getDescription()
|
String |
getId()
|
String |
getLabel()
|
String |
getMessage(String key)
Get the message. |
String |
getMessage(String key,
Object[] args)
Get the message with replacement strings. |
protected Messages |
getMessages()
Get the AbstractMessagesImpl object for this dialog/control. |
String |
getName()
Return the configured name of this control (not the id). |
List |
getOptions()
|
DialogControlImpl |
getParent()
|
javax.servlet.http.HttpServletRequest |
getRequest()
|
protected javax.servlet.http.HttpServletResponse |
getResponse()
|
Content |
getStorageNode()
|
DialogControlImpl |
getSub(String name)
Find a control by its name |
List |
getSubs()
|
DialogControlImpl |
getTopParent()
|
String |
getValidationPattern()
|
String |
getValue()
|
List |
getValues()
|
Content |
getWebsiteNode()
Deprecated. use getStorageNode() |
void |
init(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Content storageNode,
Content configNode)
Initialize a Dialog. |
boolean |
isRequired()
True if a value is required. |
protected String |
readValue()
|
protected List |
readValues()
|
void |
removeSessionAttribute()
|
void |
setConfig(String key,
boolean value)
|
void |
setConfig(String key,
int value)
|
void |
setConfig(String key,
String value)
|
void |
setDescription(String s)
|
void |
setLabel(String s)
|
void |
setName(String s)
Set the name of this control. |
void |
setOptions(List options)
|
void |
setRequired(boolean required)
|
void |
setSaveInfo(boolean b)
|
void |
setSessionAttribute()
This method sets a control into the session |
protected void |
setTopParent(DialogControlImpl top)
|
protected void |
setValidationMessage(String msg)
|
void |
setValue(String s)
|
boolean |
validate()
If the validation fails the code will set a message in the context using the AlertUtil. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VALIDATION_PATTERN_PROPERTY
public static final String DEFAULT_VALUE_PROPERTY
public static final String SESSION_ATTRIBUTENAME_DIALOGOBJECT
public static final String SESSION_ATTRIBUTENAME_DIALOGOBJECT_REMOVE
protected String value
Constructor Detail |
---|
public DialogControlImpl()
Method Detail |
---|
public void init(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content storageNode, Content configNode) throws javax.jcr.RepositoryException
DialogControl
init
in interface DialogControl
request
- current HttpServletRequestresponse
- current HttpServletResponsestorageNode
- current website nodeconfigNode
- configuration node for the dialog
javax.jcr.RepositoryException
public void drawHtml(Writer out) throws IOException
DialogControl
drawHtml
in interface DialogControl
out
- Writer
IOException
- exceptions thrown when writing to the Writer can be safely rethrown by the dialogDialogControl.drawHtml(Writer)
public void addSub(Object o)
public void setConfig(String key, String value)
public void setConfig(String key, boolean value)
public void setConfig(String key, int value)
public String getConfigValue(String key, String nullValue)
public String getConfigValue(String key)
public void setValue(String s)
public String getValue()
protected String readValue()
public void setSaveInfo(boolean b)
public void setName(String s)
public String getName()
public void addOption(Object o)
public Content getStorageNode()
public void setLabel(String s)
public void setDescription(String s)
public void removeSessionAttribute()
public javax.servlet.http.HttpServletRequest getRequest()
public void setOptions(List options)
protected void drawHtmlPreSubs(Writer out) throws IOException
IOException
protected void drawSubs(Writer out) throws IOException
IOException
protected void drawHtmlPostSubs(Writer out) throws IOException
IOException
public DialogControlImpl getParent()
protected void setTopParent(DialogControlImpl top)
public DialogControlImpl getTopParent()
public List getSubs()
public DialogControlImpl getSub(String name)
name
- the name of the control to find
protected javax.servlet.http.HttpServletResponse getResponse()
@Deprecated protected void clearWebsiteNode()
public String getId()
public String getLabel()
public String getDescription()
public List getOptions()
public List getValues()
protected List readValues()
public void setSessionAttribute()
protected Messages getMessages()
i18nBasename
, then it tries to find the parent with the first definition.
public String getMessage(String key)
key
- key
public String getMessage(String key, Object[] args)
key
- keyargs
- replacement strings
public boolean validate()
protected void setValidationMessage(String msg)
public String getValidationPattern()
public boolean isRequired()
public void setRequired(boolean required)
@Deprecated public Content getWebsiteNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |