|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.control.FormHtmlElement
A description in a form
| Field Summary | |
private AlignmentType |
alignment
The horizontal alignment of the form element |
private boolean |
bodyInclude
Indicates whether the description is set within the body or as an attribute |
private int |
colspan
The ColumnSpan of this element |
private boolean |
filter
Indicates if the text should be converted into HTML |
private java.lang.String |
height
The height of the form element |
private java.lang.String |
help
The Help Identifier for this element |
private java.lang.String |
html
The description |
private boolean |
join
This flag indicates that this element should be joined with the preceding element without a separator |
private FormLabelDesignModel |
label
Label of the form element |
private FormElementContainer |
parent
The parent container |
private Permission |
permission
permissions for this form element |
private boolean |
required
Required indicator |
private java.lang.String |
style
HTML-Style |
private java.lang.String |
styleClass
Style Class -> HTML class attribute |
private java.lang.String |
styleId
Style ID |
private AlignmentType |
valignment
The vertical alignment of the form element |
private java.lang.String |
width
The width of the form element |
| Constructor Summary | |
FormHtmlElement()
Constructor |
|
| Method Summary | |
boolean |
filter()
Returns the filter. |
AlignmentType |
getAlignment()
Returns the horizontal alignment |
int |
getColSpan()
Returns the column span for this element |
java.lang.String |
getDescription()
Returns the description |
java.lang.String |
getHeight()
Returns the height of the form element (pixel or %) |
java.lang.String |
getHelp()
Returns the Help id that is associated with this form element. |
java.lang.String |
getHtml()
Returns the raw HTML Text |
FormLabelDesignModel |
getLabel()
Return the Label which should be display in front of the Form element |
boolean |
getNoWrap()
Indicates that the form element cell should not be wrapped |
FormElementContainer |
getParent()
|
Permission |
getPermission()
Returns the authorizations required to access an object If the method returns null no access rights is required. |
java.lang.String |
getStyle()
Returns the Style |
java.lang.String |
getStyleClass()
Returns the StyleClass |
java.lang.String |
getStyleId()
returns the StyleId |
AlignmentType |
getVAlignment()
Returns the vertical alignment |
java.lang.String |
getWidth()
Returns the width of the form element (pixel or %) |
boolean |
isBodyInclude()
Returns if the description was set within the body (true) or as an attribute (false) |
boolean |
isRequired()
True if the form element is required. |
boolean |
joinElements()
This method returns true when two adjacent form elements
should be joined together without a separator |
void |
setAccessKey(java.lang.String accessKey)
The ACCESSKEY attribute can be used to specify a shortcut key for the <LABEL> (activated by pressing 'Alt' and the ACCESSKEY together). |
void |
setAlignment(AlignmentType alignment)
Specifies the horizontal alignment of the form element within the form left right center |
void |
setBodyInclude(boolean include)
Sets if the description is set within the body (=true) |
void |
setColSpan(int colspan)
Sets the column span of this form element |
void |
setFilter(boolean filter)
Sets the filter. |
void |
setHeight(java.lang.String height)
Sets the height of the form element (pixel or %) |
void |
setHelp(java.lang.String helpId)
Associates this form element with a help id |
void |
setHtml(java.lang.String html)
Sets the HTML text |
void |
setImageRef(java.lang.String ref)
Assigns the Crumb an Image from an ImageMap |
void |
setJoin(boolean join)
This method specifies that two adjacent form elements should be joined together without a separator |
void |
setLabel(FormLabelDesignModel label)
Sets the elements Label |
void |
setLabel(java.lang.String label)
Sets the Label |
void |
setLabelTooltip(java.lang.String tooltip)
Sets the tooltip text for the label |
void |
setParent(FormElementContainer parent)
|
void |
setPermission(Permission permission)
Sets the elements permission |
void |
setRequired(boolean required)
Sets the Required Attribute |
void |
setStyle(java.lang.String style)
Sets the Style |
void |
setStyleClass(java.lang.String styleClass)
Sets the StyleClass |
void |
setStyleId(java.lang.String styleId)
Sets the StyleId |
void |
setVAlignment(AlignmentType valignment)
Specifies the vertical alignment of the form element within the form top bottom center |
void |
setWidth(java.lang.String width)
Sets the width of the form element (pixel or %) |
boolean |
show(Principal principal)
Checks if the Object has a required permission. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private FormLabelDesignModel label
private FormElementContainer parent
private boolean filter
private boolean bodyInclude
private java.lang.String html
private AlignmentType alignment
private AlignmentType valignment
private java.lang.String height
private java.lang.String width
private java.lang.String styleId
private java.lang.String styleClass
private java.lang.String style
private java.lang.String help
private boolean required
private Permission permission
private int colspan
private boolean join
| Constructor Detail |
public FormHtmlElement()
| Method Detail |
public FormElementContainer getParent()
getParent in interface FormElementnull when this is
the top most containerFormElement.getParent()public void setParent(FormElementContainer parent)
setParent in interface FormElementparent - the parent form element container for this elementFormElement.setParent(com.cc.framework.ui.control.FormElementContainer)public java.lang.String getDescription()
getDescription in interface LabeledFormElementpublic java.lang.String getHtml()
public void setHtml(java.lang.String html)
html - The HTML Textpublic boolean filter()
public void setFilter(boolean filter)
filter - The filter to setpublic FormLabelDesignModel getLabel()
getLabel in interface LabeledFormElementpublic void setLabel(java.lang.String label)
label - Labelpublic void setLabel(FormLabelDesignModel label)
label - Labelpublic void setAccessKey(java.lang.String accessKey)
LabeledFormElement
setAccessKey in interface LabeledFormElementaccessKey - The Access KeyLabeledFormElement.setAccessKey(java.lang.String)public void setLabelTooltip(java.lang.String tooltip)
LabeledFormElement
setLabelTooltip in interface LabeledFormElementtooltip - Tooltip textLabeledFormElement.setLabelTooltip(java.lang.String)public boolean isBodyInclude()
public void setBodyInclude(boolean include)
include - Flag which indicates if the body was set instead of the
attributepublic Permission getPermission()
AccessControllednull no access rights is required.
getPermission in interface AccessControlledAccessControlled.getPermission()public void setPermission(Permission permission)
permission - required permissionpublic boolean show(Principal principal)
AccessControlled
show in interface AccessControlledprincipal - the users principal object
true if the permission existsAccessControlled.show(Principal)public int getColSpan()
FormElement
getColSpan in interface FormElementFormElement.getColSpan()public void setColSpan(int colspan)
FormElement
setColSpan in interface FormElementcolspan - column spanFormElement.setColSpan(int)public boolean joinElements()
FormElementtrue when two adjacent form elements
should be joined together without a separator
joinElements in interface FormElementtrue when the form elements should be joinedFormElement.joinElements()public void setJoin(boolean join)
FormElement
setJoin in interface FormElementjoin - true when the form elements should be joinedFormElement.setJoin(boolean)public void setImageRef(java.lang.String ref)
ref - Rule of the ImageMap to matchpublic AlignmentType getAlignment()
FormElement
getAlignment in interface FormElementFormElement.getAlignment()public AlignmentType getVAlignment()
FormElement
getVAlignment in interface FormElementFormElement.getVAlignment()public void setAlignment(AlignmentType alignment)
FormElement
setAlignment in interface FormElementalignment - The alignment of the elementFormElement.setAlignment(com.cc.framework.ui.AlignmentType)public void setVAlignment(AlignmentType valignment)
FormElement
setVAlignment in interface FormElementvalignment - The alignment of the elementFormElement.setVAlignment(com.cc.framework.ui.AlignmentType)public java.lang.String getHeight()
FormElement
getHeight in interface FormElementFormElement.getHeight()public java.lang.String getWidth()
FormElement
getWidth in interface FormElementFormElement.getWidth()public void setHeight(java.lang.String height)
FormElement
setHeight in interface FormElementheight - The HeightFormElement.setHeight(java.lang.String)public void setWidth(java.lang.String width)
FormElement
setWidth in interface FormElementwidth - The WidthFormElement.setWidth(java.lang.String)public boolean getNoWrap()
FormElement
getNoWrap in interface FormElementFormElement.getNoWrap()public java.lang.String getStyle()
FormElement
getStyle in interface FormElementFormElement.getStyle()public java.lang.String getStyleId()
FormElement
getStyleId in interface FormElementFormElement.getStyleId()public java.lang.String getStyleClass()
FormElement
getStyleClass in interface FormElementFormElement.getStyleClass()public void setStyle(java.lang.String style)
FormElement
setStyle in interface FormElementstyle - HTML style constantFormElement.setStyle(java.lang.String)public void setStyleId(java.lang.String styleId)
FormElement
setStyleId in interface FormElementstyleId - HTML-Id of the elementFormElement.setStyleId(java.lang.String)public void setStyleClass(java.lang.String styleClass)
FormElement
setStyleClass in interface FormElementstyleClass - StyleClassFormElement.setStyleClass(java.lang.String)public java.lang.String getHelp()
FormElement
getHelp in interface FormElementFormElement.getHelp()public void setHelp(java.lang.String helpId)
FormElement
setHelp in interface FormElementhelpId - The Help Help id of the element. The semantic of this id is
completely in the responsibility of the applications help
systemFormElement.setHelp(java.lang.String)public boolean isRequired()
public void setRequired(boolean required)
required - true if the form element is required
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||