|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.control.FormMessageElement
messages within forms
Field Summary | |
private AlignmentType |
alignment
The horizontal alignment of the form element |
private int |
colspan
The ColumnSpan of this element |
private boolean |
filter
Defines if the message should be HTML encoded |
private java.lang.String |
height
The height of the form element |
private java.lang.String |
help
The Help Identifier for this element |
private boolean |
join
This flag indicates that this element should be joined with the preceding element without a separator |
private java.lang.String |
message
The message text |
private FormElementContainer |
parent
The parent container |
private Permission |
permission
permissions for this form element |
private Severity |
severity
Severity for this Message |
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 | |
FormMessageElement()
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 |
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 |
getMessage()
Returns the message. |
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. |
Severity |
getSeverity()
Returns the severity. |
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 |
joinElements()
This method returns true when two adjacent form elements
should be joined together without a separator |
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 |
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 |
setJoin(boolean join)
This method specifies that two adjacent form elements should be joined together without a separator |
void |
setMessage(java.lang.String message)
Sets the message. |
void |
setParent(FormElementContainer parent)
|
void |
setPermission(Permission permission)
Sets the elements permission |
void |
setSeverity(Severity severity)
Sets the severity. |
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 Severity severity
private FormElementContainer parent
private boolean filter
private java.lang.String message
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 Permission permission
private int colspan
private boolean join
Constructor Detail |
public FormMessageElement()
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 java.lang.String getMessage()
public Severity getSeverity()
public void setMessage(java.lang.String message)
message
- The message to setpublic void setSeverity(Severity severity)
severity
- The severity to setpublic boolean filter()
public void setFilter(boolean filter)
filter
- The filter to setpublic Permission getPermission()
AccessControlled
null
no access rights is required.
getPermission
in interface AccessControlled
AccessControlled.getPermission()
public void setPermission(Permission permission)
permission
- required permissionpublic 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 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)
public java.lang.String getHelp()
FormElement
getHelp
in interface FormElement
FormElement.getHelp()
public void setHelp(java.lang.String helpId)
FormElement
setHelp
in interface FormElement
helpId
- 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)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |