|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.model.imp.ClientHandlerImp com.cc.framework.ui.model.imp.ControlDesignModelImp com.cc.framework.ui.model.imp.ButtonDesignModelImp
The design model for the Spin control
Field Summary | |
private java.lang.String |
base
Image Base directory |
private int |
buttonStyle
The button style id. |
private ButtonType |
buttonType
The button type |
private boolean |
filter
Specifies if all String should be converted into there HTML representation |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.String |
src
URL to image resource |
private java.lang.String |
target
Target Attribute |
private java.lang.String |
text
Text |
Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp |
|
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
|
Constructor Summary | |
ButtonDesignModelImp()
Constructor |
Method Summary | |
boolean |
filter()
Returns if the filter is activated (default=true). |
java.lang.String |
getBase()
Gets the Base Directory for the Resource |
int |
getButtonStyle()
Returns the style for a text button If text buttons with different background images are needed they can be distinguished by the buttonStyle id. |
ButtonType |
getButtonType()
Returns the type of the button |
java.lang.String |
getSrc()
Returns the src. |
java.lang.String |
getTarget()
Returns the target attribute. |
java.lang.String |
getText()
Returns the text. |
void |
setBase(java.lang.String base)
Sets the resoure base directory |
void |
setButtonStyle(int buttonStyle)
Sets the button style indicating the background image of the text button |
void |
setButtonType(ButtonType buttonType)
Sets the type of the button |
void |
setFilter(boolean filter)
Activates the HTML encoding (filter). |
void |
setSrc(java.lang.String src)
Sets the src. |
void |
setTarget(java.lang.String target)
Defines a target attribute. |
void |
setText(java.lang.String text)
Sets the text. |
Methods inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp |
addDesignRule, enableAjax, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isAjaxEnabled, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction, setWidth, show |
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.ControlDesignModel |
addDesignRule, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction, setWidth |
Methods inherited from interface com.cc.framework.ui.model.ClientHandler |
getHandler, getHandlers, setHandler |
Methods inherited from interface com.cc.framework.ui.model.AccessControlled |
getPermission, show |
Methods inherited from interface com.cc.framework.ui.model.ActionBehavior |
isAjaxEnabled |
Methods inherited from interface com.cc.framework.ui.model.AjaxSupport |
enableAjax, isAjaxEnabled |
Field Detail |
private static final long serialVersionUID
private java.lang.String src
private java.lang.String text
private java.lang.String base
private ButtonType buttonType
private int buttonStyle
private boolean filter
private java.lang.String target
Constructor Detail |
public ButtonDesignModelImp()
Method Detail |
public java.lang.String getSrc()
ButtonDesignModel
getSrc
in interface ButtonDesignModel
ButtonDesignModel.getSrc()
public void setSrc(java.lang.String src)
ButtonDesignModel
setSrc
in interface ButtonDesignModel
src
- The src to setButtonDesignModel.setSrc(java.lang.String)
public java.lang.String getText()
ButtonDesignModel
getText
in interface ButtonDesignModel
ButtonDesignModel.getText()
public void setText(java.lang.String text)
ButtonDesignModel
setText
in interface ButtonDesignModel
text
- The text to setButtonDesignModel.setText(java.lang.String)
public java.lang.String getBase()
WebResourceAccess
getBase
in interface WebResourceAccess
null
WebResourceAccess.getBase()
public void setBase(java.lang.String base)
WebResourceAccess
setBase
in interface WebResourceAccess
base
- Base DirectoryWebResourceAccess.setBase(java.lang.String)
public int getButtonStyle()
ButtonDesignModel
getButtonStyle
in interface ButtonDesignModel
ButtonDesignModel.getButtonStyle()
public void setButtonStyle(int buttonStyle)
ButtonDesignModel
setButtonStyle
in interface ButtonDesignModel
buttonStyle
- The button style idButtonDesignModel.setButtonStyle(int)
public ButtonType getButtonType()
ButtonDesignModel
getButtonType
in interface ButtonDesignModel
ButtonDesignModel.getButtonType()
public void setButtonType(ButtonType buttonType)
ButtonDesignModel
setButtonType
in interface ButtonDesignModel
buttonType
- The button typeButtonDesignModel.setButtonType(com.cc.framework.ui.model.ButtonType)
public boolean filter()
ButtonDesignModel
filter
in interface ButtonDesignModel
true
if string will be HTML encoded;
false
otherwiseButtonDesignModel.filter()
public void setFilter(boolean filter)
ButtonDesignModel
setFilter
in interface ButtonDesignModel
filter
- true
if strings should be HTML encoded; false
otherwiseButtonDesignModel.setFilter(boolean)
public void setTarget(java.lang.String target)
ButtonDesignModel
setTarget
in interface ButtonDesignModel
target
- The target attributeButtonDesignModel.setTarget(java.lang.String)
public java.lang.String getTarget()
ButtonDesignModel
getTarget
in interface ButtonDesignModel
ButtonDesignModel.getTarget()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |