|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.control.FormControlElement
A form control element
Field Summary | |
private AlignmentType |
alignment
The horizontal alignment of the form element |
private int |
colspan
The ColumnSpan of this element |
private Control |
control
The aggregated Control |
private java.lang.String |
description
Description |
private java.lang.String |
height
The height of the form element |
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 boolean |
required
Required Flag |
private AlignmentType |
valignment
The vertical alignment of the form element |
private java.lang.String |
width
The width of the form element |
Constructor Summary | |
FormControlElement()
Constructor |
Method Summary | |
AlignmentType |
getAlignment()
Returns the horizontal alignment |
int |
getColSpan()
Returns the column span for this element |
Control |
getControl()
Returns the control. |
java.lang.String |
getDescription()
Returns the Description text which should be displayed under the form element |
java.lang.String |
getHeight()
Returns the height of the form element (pixel or %) |
java.lang.String |
getHelp()
Returns the Help |
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 |
getProperty()
Returns the Property name of the Control |
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 |
isDisabled()
true if the form element can be edited |
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 |
setColSpan(int colspan)
Sets the column span of this form element |
void |
setControl(Control control)
Sets the control. |
void |
setDescription(java.lang.String description)
Sets the description |
void |
setDisabled(boolean disabled)
Returns the Disabled Flag |
void |
setHeight(java.lang.String height)
Sets the height of the form element (pixel or %) |
void |
setHelp(java.lang.String help)
Sets the help |
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 |
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 required
private java.lang.String description
private Control control
private AlignmentType alignment
private AlignmentType valignment
private java.lang.String height
private java.lang.String width
private int colspan
private boolean join
Constructor Detail |
public FormControlElement()
Method Detail |
public FormElementContainer getParent()
getParent
in interface FormElement
null
when this is
the top most containerFormElement.getParent()
public void setParent(FormElementContainer parent)
setParent
in interface FormElement
parent
- the parent form element container for this elementFormElement.setParent(com.cc.framework.ui.control.FormElementContainer)
public FormLabelDesignModel getLabel()
getLabel
in interface LabeledFormElement
public void setLabel(java.lang.String label)
label
- Labelpublic void setLabel(FormLabelDesignModel label)
label
- Labelpublic void setAccessKey(java.lang.String accessKey)
LabeledFormElement
setAccessKey
in interface LabeledFormElement
accessKey
- The Access KeyLabeledFormElement.setAccessKey(java.lang.String)
public void setLabelTooltip(java.lang.String tooltip)
LabeledFormElement
setLabelTooltip
in interface LabeledFormElement
tooltip
- Tooltip textLabeledFormElement.setLabelTooltip(java.lang.String)
public boolean isRequired()
public void setRequired(boolean required)
required
- true if the form element is requiredpublic boolean isDisabled()
public void setDisabled(boolean disabled)
disabled
- true
if the form element can be editedpublic java.lang.String getDescription()
getDescription
in interface LabeledFormElement
public void setDescription(java.lang.String description)
description
- descriptionpublic java.lang.String getHelp()
getHelp
in interface FormElement
public void setHelp(java.lang.String help)
setHelp
in interface FormElement
help
- Helppublic Control getControl()
public void setControl(Control control)
control
- The control to setpublic java.lang.String getProperty()
public Permission getPermission()
AccessControlled
null
no access rights is required.
getPermission
in interface AccessControlled
AccessControlled.getPermission()
public boolean show(Principal principal)
AccessControlled
show
in interface AccessControlled
principal
- the users principal object
true
if the permission existsAccessControlled.show(Principal)
public int getColSpan()
FormElement
getColSpan
in interface FormElement
FormElement.getColSpan()
public void setColSpan(int colspan)
FormElement
setColSpan
in interface FormElement
colspan
- column spanFormElement.setColSpan(int)
public boolean joinElements()
FormElement
true
when two adjacent form elements
should be joined together without a separator
joinElements
in interface FormElement
true
when the form elements should be joinedFormElement.joinElements()
public void setJoin(boolean join)
FormElement
setJoin
in interface FormElement
join
- 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 FormElement
FormElement.getAlignment()
public AlignmentType getVAlignment()
FormElement
getVAlignment
in interface FormElement
FormElement.getVAlignment()
public void setAlignment(AlignmentType alignment)
FormElement
setAlignment
in interface FormElement
alignment
- The alignment of the elementFormElement.setAlignment(com.cc.framework.ui.AlignmentType)
public void setVAlignment(AlignmentType valignment)
FormElement
setVAlignment
in interface FormElement
valignment
- The alignment of the elementFormElement.setVAlignment(com.cc.framework.ui.AlignmentType)
public java.lang.String getHeight()
FormElement
getHeight
in interface FormElement
FormElement.getHeight()
public java.lang.String getWidth()
FormElement
getWidth
in interface FormElement
FormElement.getWidth()
public void setHeight(java.lang.String height)
FormElement
setHeight
in interface FormElement
height
- The HeightFormElement.setHeight(java.lang.String)
public void setWidth(java.lang.String width)
FormElement
setWidth
in interface FormElement
width
- The WidthFormElement.setWidth(java.lang.String)
public boolean getNoWrap()
FormElement
getNoWrap
in interface FormElement
FormElement.getNoWrap()
public java.lang.String getStyle()
FormElement
getStyle
in interface FormElement
FormElement.getStyle()
public java.lang.String getStyleId()
FormElement
getStyleId
in interface FormElement
FormElement.getStyleId()
public java.lang.String getStyleClass()
FormElement
getStyleClass
in interface FormElement
FormElement.getStyleClass()
public void setStyle(java.lang.String style)
FormElement
setStyle
in interface FormElement
style
- HTML style constantFormElement.setStyle(java.lang.String)
public void setStyleId(java.lang.String styleId)
FormElement
setStyleId
in interface FormElement
styleId
- HTML-Id of the elementFormElement.setStyleId(java.lang.String)
public void setStyleClass(java.lang.String styleClass)
FormElement
setStyleClass
in interface FormElement
styleClass
- StyleClassFormElement.setStyleClass(java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |