|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.control.Control com.cc.framework.ui.control.FormControl
A form control
Field Summary | |
private FormDataModel |
dataModel
Data model |
private FormDesignModel |
designModel
Design model |
private static long |
serialVersionUID
Serial Version UID |
Fields inherited from class com.cc.framework.ui.control.Control |
log |
Fields inherited from interface com.cc.framework.ui.model.StateModel |
PROP_CONTROL |
Constructor Summary | |
FormControl()
Constructor |
Method Summary | |
java.lang.String |
getCaption()
Returns the caption of the form |
int |
getColSpan()
Returns the column span for this element |
DataModel |
getDataModel()
Returns the data model of the Control |
ControlDesignModel |
getDesignModel()
Returns the design model of the control |
java.lang.String |
getDetail()
Returns the detail text |
FormElementContainer |
getFormElements()
Returns a container with all form elements within the form |
java.lang.String |
getFormId()
Returns the id of the form |
FormType |
getFormType()
Returns the type of the form |
ImageModel |
getImage()
Returns the image for the frames title |
ImageMap |
getImageMap()
Returns the ImageMap |
InnerFrame[] |
getInnerFrames(java.lang.Object layoutHint)
Retrieves a list of inner frames that are matching the given layout hint |
java.lang.String |
getLabelPrefix()
Retrieves the optional label prefix in plain HTML. |
java.lang.String |
getLabelSuffix()
Retrieves the optional label suffix in plain HTML. |
StateModel |
getStateModel()
Returns the state model of the control |
void |
reset()
Resets the state model |
void |
setDataModel(FormDataModel dataModel)
Sets the data model |
void |
setDesignModel(FormDesignModel designModel)
Sets the design model |
boolean |
showButton(ControlButton button)
This Method is called by the Painter before rendering a Button. |
boolean |
showFrame()
|
Methods inherited from class com.cc.framework.ui.control.Control |
addButton, allowAjaxRendering, execute, execute, execute, execute, execute, execute, execute, getAction, getAjaxId, getButtons, getControlName, getDesignRules, getFrameworkString, getHandler, getHandlers, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getPrincipal, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getUniqueStyleId, getWidth, isAjaxEnabled, isDisabled, isFormElement, markDirty, onHelp, setAjaxAttribute, setHandler, setPrincipal, setValue, show, synchronizeState, synchronizeState |
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.StateModel |
synchronizeState |
Field Detail |
private static final long serialVersionUID
private FormDataModel dataModel
private FormDesignModel designModel
Constructor Detail |
public FormControl()
Method Detail |
public DataModel getDataModel()
Control
getDataModel
in class Control
Control.getDataModel()
public void setDataModel(FormDataModel dataModel)
dataModel
- The data model of the formpublic ControlDesignModel getDesignModel()
Control
getDesignModel
in class Control
Control.getDesignModel()
public StateModel getStateModel()
Control
getStateModel
in class Control
Control.getStateModel()
public void setDesignModel(FormDesignModel designModel)
designModel
- The design model of the formpublic FormElementContainer getFormElements()
public int getColSpan()
public java.lang.String getFormId()
public java.lang.String getCaption()
public java.lang.String getDetail()
public FormType getFormType()
public ImageMap getImageMap()
public ImageModel getImage()
public boolean showFrame()
true
if the frame should be shownpublic boolean showButton(ControlButton button)
Control
showButton
in class Control
button
- ControlButton
Control.showButton(com.cc.framework.ui.control.ControlButton)
public InnerFrame[] getInnerFrames(java.lang.Object layoutHint)
layoutHint
- The layout hint that specifies what frames should be selected:
AlignmentType.TOP
- header frames
AlignmentType.BOTTOM
- footer frames
public java.lang.String getLabelPrefix()
null
public java.lang.String getLabelSuffix()
null
public void reset()
reset
in interface StateModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |