|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.control.FormGroupElement
Group of form elements
| Field Summary | |
private AlignmentType |
alignment
The horizontal alignment of the form element |
private java.lang.String |
cellWidth
The width of the cell area for this container |
private int |
colspan
The ColumnSpan of this group |
private FormColumnGroup |
columnGroup
The column group definition with the column widths |
private java.util.ArrayList |
elements
Child form elements |
private java.lang.String |
expandProperty
The (optional) name of a property that is used to expand or collapse the group |
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 |
imageRef
Reference to an image in the ImageMap of the form which should be displayed in front of the label. |
private boolean |
join
This flag indicates that this element should be joined with the preceding element without a separator |
private java.lang.String |
labelWidth
The width of the label area for this container |
private OrientationType |
orientation
The orientation of the elements in this group |
private FormElementContainer |
parent
The parent container |
private Permission |
permission
permissions for the element |
private boolean |
showFrame
Enables or disables the forms frame |
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 java.lang.String |
title
caption |
private AlignmentType |
valignment
The vertical alignment of the form element |
private java.lang.String |
width
The width of the form element |
| Constructor Summary | |
FormGroupElement()
Constructor |
|
| Method Summary | |
void |
addFormElement(FormElement element)
Adds a new child element to the container |
AlignmentType |
getAlignment()
Returns the horizontal alignment |
java.lang.String |
getCellWidth()
Returns the width of the control cell for this container. |
int |
getColSpan()
Returns the column span for this element |
FormColumnGroup |
getColumnGroup()
|
java.lang.String |
getExpandProperty()
Retrieves the name of a property that is used to expand or collapse the group |
FormElement |
getFormElement(int index)
Returns a single elements in the container |
FormElement[] |
getFormElements()
Returns a list with all elements in the container |
FormElement[] |
getFormElements(Principal principal)
Returns a list with all visible elements in the container filtered on the principals permissions |
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 |
getImageRef()
Returns the assignment Rule |
java.lang.String |
getLabelWidth()
Returns the width of the labels for this container. |
boolean |
getNoWrap()
Indicates that the form element cell should not be wrapped |
OrientationType |
getOrientation()
|
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 |
java.lang.String |
getTitle()
Returns the title. |
AlignmentType |
getVAlignment()
Returns the vertical alignment |
java.lang.String |
getWidth()
Returns the width of the form element (pixel or %) |
boolean |
joinElements()
This method returns true when two adjacent form elements
should be joined together without a separator |
void |
removeFormElement(FormElement element)
Removes the specified form element from the container |
void |
setAlignment(AlignmentType alignment)
Specifies the horizontal alignment of the form element within the form left right center |
void |
setCellWidth(java.lang.String width)
Sets the width of the control cell for this container. |
void |
setColSpan(int colspan)
Sets the column span of this form element |
void |
setExpandProperty(java.lang.String propertyName)
Sets the name of a property that is used to expand or collapse the group |
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 |
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 |
setLabelWidth(java.lang.String width)
Sets the width of the labels for this container. |
void |
setOrientation(OrientationType type)
|
void |
setParent(FormElementContainer parent)
|
void |
setPermission(Permission permission)
Sets the elements permission |
void |
setShowFrame(boolean show)
Disables the forms border |
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 |
setTitle(java.lang.String title)
Sets the title. |
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. |
boolean |
showFrame()
|
int |
size()
Returns the number of elements in the container |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private FormElementContainer parent
private java.lang.String title
private OrientationType orientation
private java.util.ArrayList elements
private int colspan
private boolean join
private java.lang.String imageRef
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 showFrame
private java.lang.String expandProperty
private java.lang.String labelWidth
private java.lang.String cellWidth
private Permission permission
private FormColumnGroup columnGroup
| Constructor Detail |
public FormGroupElement()
| 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 void addFormElement(FormElement element)
FormElementContainer
addFormElement in interface FormElementContainerelement - The new form elementFormElementContainer.addFormElement(com.cc.framework.ui.control.FormElement)public FormElement getFormElement(int index)
FormElementContainer
getFormElement in interface FormElementContainerindex - Elements index
FormElementContainer.getFormElement(int)public FormElement[] getFormElements()
FormElementContainer
getFormElements in interface FormElementContainerFormElementContainer.getFormElements()public FormElement[] getFormElements(Principal principal)
FormElementContainer
getFormElements in interface FormElementContainerprincipal - the principal object with the permissions
FormElementContainer.getFormElements(com.cc.framework.security.Principal)public void removeFormElement(FormElement element)
FormElementContainer
removeFormElement in interface FormElementContainerelement - The form element to removeFormElementContainer.removeFormElement(FormElement)public int size()
FormElementContainer
size in interface FormElementContainerFormElementContainer.size()public 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 OrientationType getOrientation()
getOrientation in interface FormElementContainerpublic void setOrientation(OrientationType type)
type - the orientation of the child elementspublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - The title to setpublic 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 java.lang.String getImageRef()
public 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 void setShowFrame(boolean show)
FormElementContainer
setShowFrame in interface FormElementContainershow - true if the forms frame should be shownFormElementContainer.setShowFrame(boolean)public boolean showFrame()
showFrame in interface FormElementContainertrue if the frame should be shownFormElementContainer.showFrame()public java.lang.String getExpandProperty()
FormElementContainer
getExpandProperty in interface FormElementContainerFormElementContainer.getExpandProperty()public void setExpandProperty(java.lang.String propertyName)
FormElementContainer
setExpandProperty in interface FormElementContainerpropertyName - java property nameFormElementContainer.setExpandProperty(java.lang.String)public void setLabelWidth(java.lang.String width)
FormElementContainer
setLabelWidth in interface FormElementContainerwidth - label width or null for default label widthFormElementContainer.setLabelWidth(java.lang.String)public java.lang.String getLabelWidth()
FormElementContainer
getLabelWidth in interface FormElementContainernull for default label widthFormElementContainer.getLabelWidth()public java.lang.String getCellWidth()
FormElementContainer
getCellWidth in interface FormElementContainernullFormElementContainer.getCellWidth()public void setCellWidth(java.lang.String width)
FormElementContainer
setCellWidth in interface FormElementContainerwidth - control cell width or nullFormElementContainer.setCellWidth(java.lang.String)public FormColumnGroup getColumnGroup()
getColumnGroup in interface FormElementContainerFormElementContainer.getColumnGroup()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||