|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.model.imp.ClientHandlerImp
com.cc.framework.ui.model.imp.ControlDesignModelImp
Base Class for all control design models
| Field Summary | |
private java.lang.String |
action
The Action assigned with the Control |
private boolean |
ajax
set to true to enable AJAX. |
private int |
border
Border which should be drawn around the Control |
private java.util.ArrayList |
designRules
Design rules |
private boolean |
disabled
Indicates if the Control is disabled |
private boolean |
dynamic
Indicates if the Design model was created dynamically in the JSP-Page. |
private boolean |
formElement
Indicates if the control always should submit the form |
private java.lang.String |
height
Height of the Control |
private java.lang.String |
help
The Help Identifier for this control |
private java.lang.String |
id
Unique Id |
private java.lang.String |
localeName
Locale Setting |
private java.lang.String |
name
The name of the Bean used for the Control |
private Permission |
permission
The Permission for the Control |
private java.lang.String |
property
Field property |
private RunAt |
runat
Indicates where to execute the Eventhandler. |
private static long |
serialVersionUID
Serial Version UID |
private boolean |
shadow
Indicates if the Control should render a shadow |
private java.lang.String |
style
THML-Style |
private java.lang.String |
styleClass
Style Class -> HTML class attribute |
private java.lang.String |
styleId
Style ID |
private java.lang.String |
summary
specifies a description and/or structure of the object That can be used for rendering to non-visual media such as speech or Braille. |
private int |
tabIndex
Tabulator Index |
private java.lang.String |
tooltip
Tooltip |
private boolean |
transaction
Directs the framework to include a transaction token (if any) in all generated hyperlinks for this column. |
private java.lang.String |
width
Width of the Control |
| Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
|
| Constructor Summary | |
ControlDesignModelImp()
Constructor |
|
| Method Summary | |
void |
addDesignRule(DesignRule rule)
Adds a new design rule to the control |
void |
enableAjax(boolean enable)
Enables or disables the AJAX behavior of the element |
java.lang.String |
getAction()
Returns the action which is assigned to the control |
int |
getBorder()
Returns the border width |
DesignRule[] |
getDesignRules()
Returns the design rules for this control |
java.lang.String |
getHeight()
Returns the height of the control |
java.lang.String |
getHelp()
Returns the Help id that is associated with this control element. |
java.lang.String |
getId()
Returns the id of the control |
java.lang.String |
getLocaleName()
Gets the Local Setting for this Control |
java.lang.String |
getName()
Returns the name of the element (bean) |
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 Attribute |
RunAt |
getRunAt()
Returns if the control works with or without server round trips. |
java.lang.String |
getStyle()
Returns the Style |
java.lang.String |
getStyleClass()
Returns the StyleClass |
java.lang.String |
getStyleId()
returns the StyleId |
java.lang.String |
getSummary()
Retrieves the property that can be used for rendering to non-visual media such as speech or Braille |
int |
getTabIndex()
Returns the Tab index |
java.lang.String |
getTooltip()
Retrieves the optional tooltip text |
boolean |
getTransaction()
Checks if the framework should include a transaction token (if any) in all generated hyperlinks. |
java.lang.String |
getWidth()
Returns the width of the control |
boolean |
hasShadow()
Returns if the control uses a shadow |
boolean |
isAjaxEnabled()
This method checks if the element should send AJAX requests to the server |
boolean |
isDisabled()
Returns the disabled Flag |
boolean |
isDynamicDesignModel()
Checks if the design model was declared within the JSP or (design time) it was predetermined by the programmer (run time). |
boolean |
isFormElement()
Checks if the control should act like a form element. |
void |
setAction(java.lang.String action)
Sets the action, which should be performed, if an event of a control occur. |
void |
setBorder(int border)
Sets the border width |
void |
setDisabled(boolean disabled)
Sets the disabled Flag |
void |
setDynamicDesignModel(boolean dynamic)
Sets if the design model was declared within the JSP or (design time) it was predetermined by the programmer (run time). |
void |
setFormElement(boolean flag)
Defines if the control should act like a form element. |
void |
setHeight(java.lang.String height)
Sets the height of the control |
void |
setHelp(java.lang.String helpId)
Associates this control with a help id |
void |
setId(java.lang.String id)
Sets the unique Id for the Control |
void |
setLocaleName(java.lang.String locale)
Sets the Locale configuration for this control |
void |
setName(java.lang.String name)
Sets the name of the element (bean) |
void |
setPermission(Permission permission)
Sets a list with permission for the object. |
void |
setProperty(java.lang.String property)
Sets the Property |
void |
setRunAt(RunAt location)
Specified if the control should work with or without server round trips |
void |
setShadow(boolean shadow)
Sets the shadow for a control |
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 |
setSummary(java.lang.String summary)
Sets the property that can be used for rendering to non-visual media such as speech or Braille |
void |
setTabIndex(int tabIndex)
Sets the Tab index |
void |
setTooltip(java.lang.String tooltip)
Sets the optional tooltip text |
void |
setTransaction(boolean transaction)
Directs the framework to include a transaction token (if any) in all generated hyperlinks. |
void |
setWidth(java.lang.String width)
Sets the Width of the Control |
boolean |
show(Principal principal)
Checks if the Object has a required permission. |
| Methods inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
evaluate, getHandler, getHandlers, setHandler |
| 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.ClientHandler |
getHandler, getHandlers, setHandler |
| Field Detail |
private static final long serialVersionUID
private boolean dynamic
private RunAt runat
private java.lang.String name
private java.lang.String property
private java.lang.String action
private java.lang.String id
private java.lang.String height
private java.lang.String width
private int border
private boolean disabled
private boolean shadow
private Permission permission
private java.lang.String styleId
private java.lang.String styleClass
private java.lang.String style
private java.lang.String help
private java.lang.String tooltip
private java.lang.String summary
private int tabIndex
private boolean formElement
private java.lang.String localeName
private java.util.ArrayList designRules
private boolean transaction
null the namespace
will be searched for the Globals.TRANSACTION_KEY key
private boolean ajax
true to enable AJAX.
| Constructor Detail |
public ControlDesignModelImp()
| Method Detail |
public boolean isDynamicDesignModel()
ControlDesignModel
isDynamicDesignModel in interface ControlDesignModelControlDesignModel.isDynamicDesignModel()public void setDynamicDesignModel(boolean dynamic)
ControlDesignModel
setDynamicDesignModel in interface ControlDesignModeldynamic - true if the design model was declared within
the JSP page.ControlDesignModel.setDynamicDesignModel(boolean)public java.lang.String getHeight()
ControlDesignModel
getHeight in interface ControlDesignModelControlDesignModel.getHeight()public java.lang.String getId()
ControlDesignModel
getId in interface ControlDesignModelControlDesignModel.getId()public java.lang.String getWidth()
ControlDesignModel
getWidth in interface ControlDesignModelControlDesignModel.getWidth()public void setHeight(java.lang.String height)
ControlDesignModel
setHeight in interface ControlDesignModelheight - HeightControlDesignModel.setHeight(String height)public void setId(java.lang.String id)
ControlDesignModel
setId in interface ControlDesignModelid - IdControlDesignModel.setId(String id)public void setWidth(java.lang.String width)
ControlDesignModel
setWidth in interface ControlDesignModelwidth - WidthControlDesignModel.setWidth(String width)public void setAction(java.lang.String action)
ControlDesignModel
setAction in interface ControlDesignModelaction - ActionControlDesignModel.setAction(String)public java.lang.String getAction()
ControlDesignModel
getAction in interface ControlDesignModelControlDesignModel.getAction()public java.lang.String getName()
ControlDesignModel
getName in interface ControlDesignModelControlDesignModel.getName()public void setName(java.lang.String name)
ControlDesignModel
setName in interface ControlDesignModelname - NameControlDesignModel.setName(java.lang.String)public java.lang.String getProperty()
ControlDesignModel
getProperty in interface ControlDesignModelControlDesignModel.getProperty()public void setProperty(java.lang.String property)
ControlDesignModel
setProperty in interface ControlDesignModelproperty - Property nameControlDesignModel.setProperty(String)public int getBorder()
ControlDesignModel
getBorder in interface ControlDesignModelControlDesignModel.getBorder()public void setBorder(int border)
ControlDesignModel
setBorder in interface ControlDesignModelborder - BorderControlDesignModel.setBorder(int)public boolean hasShadow()
ControlDesignModel
hasShadow in interface ControlDesignModelControlDesignModel.hasShadow()public void setShadow(boolean shadow)
ControlDesignModel
setShadow in interface ControlDesignModelshadow - true if the control should render a shadowControlDesignModel.setShadow(boolean)public Permission getPermission()
AccessControllednull no access rights is required.
getPermission in interface AccessControlledAccessControlled.getPermission()public void setPermission(Permission permission)
ControlDesignModel
setPermission in interface ControlDesignModelpermission - PermissionControlDesignModel.setPermission(com.cc.framework.security.Permission)public boolean show(Principal principal)
AccessControlled
show in interface AccessControlledprincipal - the users principal object
true if the permission existsAccessControlled.show(Principal)public void setRunAt(RunAt location)
ControlDesignModel
setRunAt in interface ControlDesignModellocation - where the action should be executed.ControlDesignModel.setRunAt(RunAt)public RunAt getRunAt()
ControlDesignModel
getRunAt in interface ControlDesignModelControlDesignModel.getRunAt()public void setFormElement(boolean flag)
ControlDesignModel
setFormElement in interface ControlDesignModelflag - true if the control should act like a form
element.ControlDesignModel.setFormElement(boolean)public boolean isFormElement()
ControlDesignModel
isFormElement in interface ControlDesignModeltrue if the control acts like a form element.ControlDesignModel.isFormElement()public java.lang.String getStyle()
ControlDesignModel
getStyle in interface ControlDesignModelControlDesignModel.getStyle()public java.lang.String getStyleId()
ControlDesignModel
getStyleId in interface ControlDesignModelControlDesignModel.getStyleId()public void setStyle(java.lang.String style)
ControlDesignModel
setStyle in interface ControlDesignModelstyle - Style constantControlDesignModel.setStyle(String style)public void setStyleId(java.lang.String styleId)
ControlDesignModel
setStyleId in interface ControlDesignModelstyleId - HTML-Id of the elementControlDesignModel.setStyleId(String styleId)public java.lang.String getHelp()
ControlDesignModel
getHelp in interface ControlDesignModelControlDesignModel.getHelp()public void setHelp(java.lang.String helpId)
ControlDesignModel
setHelp in interface ControlDesignModelhelpId - The Help Help id of the element. The semantic of this id is
completely in the responsibility of the applications help
systemControlDesignModel.setHelp(java.lang.String)public boolean isDisabled()
ControlDesignModel
isDisabled in interface ControlDesignModelControlDesignModel.isDisabled()public void setDisabled(boolean disabled)
ControlDesignModel
setDisabled in interface ControlDesignModeldisabled - true if the control should be rendered as
inactiveControlDesignModel.setDisabled(boolean disabled)public java.lang.String getStyleClass()
ControlDesignModel
getStyleClass in interface ControlDesignModelControlDesignModel.getStyleClass()public void setStyleClass(java.lang.String styleClass)
ControlDesignModel
setStyleClass in interface ControlDesignModelstyleClass - StyleClassControlDesignModel.setStyleClass(String styleClass)public int getTabIndex()
ControlDesignModel
getTabIndex in interface ControlDesignModelControlDesignModel.getTabIndex()public void setTabIndex(int tabIndex)
ControlDesignModel
setTabIndex in interface ControlDesignModeltabIndex - IndexControlDesignModel.setTabIndex(int)public void setTooltip(java.lang.String tooltip)
setTooltip in interface ControlDesignModeltooltip - Tooltippublic java.lang.String getTooltip()
getTooltip in interface ControlDesignModelnullpublic java.lang.String getSummary()
ControlDesignModel
getSummary in interface ControlDesignModelnullControlDesignModel.getSummary()public void setSummary(java.lang.String summary)
ControlDesignModel
setSummary in interface ControlDesignModelsummary - specifies a description and/or structure of the object.ControlDesignModel.setSummary(java.lang.String)public boolean getTransaction()
ControlDesignModel
getTransaction in interface ControlDesignModeltrue if the transaction token should be generatedControlDesignModel.getTransaction()public void setTransaction(boolean transaction)
ControlDesignModel
setTransaction in interface ControlDesignModeltransaction - include transaction tokenControlDesignModel.setTransaction(boolean)public boolean isAjaxEnabled()
ActionBehavior
isAjaxEnabled in interface ActionBehaviortrue when the control should send AJAX
requests.ActionBehavior.isAjaxEnabled()public void enableAjax(boolean enable)
AjaxSupport
enableAjax in interface AjaxSupportenable - set to true to enable AJAX.AjaxSupport.enableAjax(boolean)public void setLocaleName(java.lang.String locale)
ControlDesignModel
setLocaleName in interface ControlDesignModellocale - Locale Identifier or true|falseControlDesignModel.setLocaleName(java.lang.String)public java.lang.String getLocaleName()
ControlDesignModel
getLocaleName in interface ControlDesignModelControlDesignModel.getLocaleName()public void addDesignRule(DesignRule rule)
ControlDesignModel
addDesignRule in interface ControlDesignModelrule - Design ruleControlDesignModel.addDesignRule(com.cc.framework.ui.model.DesignRule)public DesignRule[] getDesignRules()
ControlDesignModel
getDesignRules in interface ControlDesignModelControlDesignModel.getDesignRules()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||