|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.platform.AbstractDepictor<C>
com.guiseframework.platform.AbstractComponentDepictor<C>
com.guiseframework.platform.web.AbstractWebComponentDepictor<C>
com.guiseframework.platform.web.WebCheckControlDepictor<C>
C - The type of component being depicted.public class WebCheckControlDepictor<C extends CheckControl>
Strategy for rendering a check control as an XHTML <input> element with type checkbox or radio.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.guiseframework.platform.AbstractComponentDepictor |
|---|
AbstractComponentDepictor.DepictedCompositeComponentListener |
| Nested classes/interfaces inherited from class com.guiseframework.platform.AbstractDepictor |
|---|
AbstractDepictor.DepictedPropertyChangeListener |
| Field Summary |
|---|
| Fields inherited from class com.guiseframework.platform.web.AbstractWebComponentDepictor |
|---|
BODY_END_PATTERN, BODY_START_PATTERN |
| Fields inherited from class com.guiseframework.platform.AbstractComponentDepictor |
|---|
childPropertyChangeListener |
| Fields inherited from interface com.guiseframework.platform.Depictor |
|---|
GENERAL_PROPERTY |
| Constructor Summary | |
|---|---|
WebCheckControlDepictor()
Default constructor using the XHTML <span> element. |
|
| Method Summary | |
|---|---|
protected void |
depictBegin()
Begins the rendering process. |
protected void |
depictEnd()
Ends the rendering process. |
protected java.lang.String |
getCheckControlName(CheckControl checkControl)
Determines the identifier to place in the name attribute of the component's XHTML element. |
java.lang.String |
getDepictName()
Determines the identifier to place in the name attribute of the component's XHTML element. |
protected java.lang.String |
getInputType()
Determines the XHTML input type to use for getting input from the user. |
protected long |
getMutualExclusionGroupID(MutualExclusionPolicyModelGroup mutualExclusionModelGroup)
Determines the ID for the mutual exclusion group. |
protected java.util.Map<java.lang.String,java.lang.Object> |
getOuterStyles()
Retrieves the styles for the outer element of the component. |
protected static boolean |
isMutualExclusion(CheckControl checkControl)
Determines whether the check control is a mutual exclusion control and should be considered a radio button rather than a checkbox. |
void |
processEvent(PlatformEvent event)
Processes an event from the platform. |
| Methods inherited from class com.guiseframework.platform.AbstractComponentDepictor |
|---|
depictChild, depictChildren, depictedObjectPropertyChange, getDepictedCompositeComponentListener, getErrorMessage, installed, uninstalled |
| Methods inherited from class com.guiseframework.platform.AbstractDepictor |
|---|
getDepictedObject, getDepictedPropertyChangeListener, getIgnoredProperties, getModifiedProperties, getSession, isDepicted, setDepicted, setPropertyModified |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.guiseframework.platform.Depictor |
|---|
getDepictedObject, getSession, installed, isDepicted, setDepicted, uninstalled |
| Constructor Detail |
|---|
public WebCheckControlDepictor()
<span> element.
| Method Detail |
|---|
protected long getMutualExclusionGroupID(MutualExclusionPolicyModelGroup mutualExclusionModelGroup)
mutualExclusionModelGroup - The model policy group for mutual exclusion for which its ID should be given.
protected static boolean isMutualExclusion(CheckControl checkControl)
checkControl - The component which should be determined to be mutual exclusion or not.
true if the given component has a MutualExclusionPolicyModelGroup value listener.MutualExclusionPolicyModelGroupprotected java.lang.String getCheckControlName(CheckControl checkControl)
checkControl - The component for which a name should be retrieved.
null if the component's element should not have a name.MutualExclusionPolicyModelGroupprotected java.util.Map<java.lang.String,java.lang.Object> getOuterStyles()
getOuterStyles in class AbstractWebComponentDepictor<C extends CheckControl>AbstractWebComponentDepictor.getBodyStyles()public java.lang.String getDepictName()
getDepictName in interface WebComponentDepictor<C extends CheckControl>getDepictName in class AbstractWebComponentDepictor<C extends CheckControl>null if the component's element should not have a name.getCheckControlName(CheckControl)public void processEvent(PlatformEvent event)
processEvent in interface Depictor<C extends CheckControl>processEvent in class AbstractComponentDepictor<C extends CheckControl>event - The event to be processed.
java.lang.IllegalArgumentException - if the given event is a relevant DepictEvent with a source of a different depicted object.protected java.lang.String getInputType()
protected void depictBegin()
throws java.io.IOException
depictBegin in class AbstractWebComponentDepictor<C extends CheckControl>java.io.IOException - if there is an error rendering the component.
java.lang.IllegalArgumentException - if the given value control represents a value type this controller doesn't support.
protected void depictEnd()
throws java.io.IOException
depictEnd in class AbstractWebComponentDepictor<C extends CheckControl>java.io.IOException - if there is an error rendering the component.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||