com.cc.framework.ui.control
Class ButtonControl

java.lang.Object
  extended bycom.cc.framework.ui.control.Control
      extended bycom.cc.framework.ui.control.ButtonControl
All Implemented Interfaces:
AccessControlled, ActionBehavior, ButtonStateModel, ClientHandler, java.io.Serializable, StateModel
Direct Known Subclasses:
MenuButtonControl

public class ButtonControl
extends Control
implements ButtonStateModel

Button control

Since:
1.0
Version:
$Revision: 1.18 $
Author:
Gernot Schulz
See Also:
Serialized Form

Field Summary
private  ButtonDesignModel designModel
          the design model for the button
private static long serialVersionUID
          Serial Version UID
 
Fields inherited from class com.cc.framework.ui.control.Control
log
 
Fields inherited from interface com.cc.framework.ui.model.StateModel
PROP_CONTROL
 
Constructor Summary
ButtonControl()
          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 Id for the button style used to get the background images for a text button
 ButtonType getButtonType()
          Returns the type of the button
 DataModel getDataModel()
          Returns the data model of the Control
 ControlDesignModel getDesignModel()
          Returns the design model of the control
 java.lang.String getSrc()
          Returns the src attribute.
 StateModel getStateModel()
          Returns the state model of the control
 java.lang.String getTarget()
          Returns the target attribute.
 java.lang.String getText()
          Returns the text
 void reset()
          Resets the actual state of a control to the initial state
 void setDesignModel(ButtonDesignModel designModel)
          Sets the design model
 
Methods inherited from class com.cc.framework.ui.control.Control
addButton, allowAjaxRendering, execute, execute, execute, execute, execute, execute, execute, getAction, getAjaxId, getButtons, getControlName, getDesignRules, getFrameworkString, getHandler, getHandlers, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getPrincipal, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getUniqueStyleId, getWidth, isAjaxEnabled, isDisabled, isFormElement, markDirty, onHelp, setAjaxAttribute, setHandler, setPrincipal, setValue, show, showButton, synchronizeState, synchronizeState
 
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.StateModel
synchronizeState
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

designModel

private ButtonDesignModel designModel
the design model for the button

Constructor Detail

ButtonControl

public ButtonControl()
Constructor

Method Detail

getDataModel

public DataModel getDataModel()
Description copied from class: Control
Returns the data model of the Control

Specified by:
getDataModel in class Control
Returns:
The data model
See Also:
Control.getDataModel()

reset

public void reset()
Description copied from interface: StateModel
Resets the actual state of a control to the initial state

Specified by:
reset in interface StateModel
See Also:
StateModel.reset()

getDesignModel

public ControlDesignModel getDesignModel()
Description copied from class: Control
Returns the design model of the control

Specified by:
getDesignModel in class Control
Returns:
The ControlDesignModel
See Also:
Control.getDesignModel()

setDesignModel

public void setDesignModel(ButtonDesignModel designModel)
Sets the design model

Parameters:
designModel - The design model

getStateModel

public StateModel getStateModel()
Description copied from class: Control
Returns the state model of the control

Specified by:
getStateModel in class Control
Returns:
The state model
See Also:
Control.getStateModel()

getText

public java.lang.String getText()
Returns the text

Returns:
The text

getButtonType

public ButtonType getButtonType()
Returns the type of the button

Returns:
The type of the button

getSrc

public java.lang.String getSrc()
Returns the src attribute.

Returns:
String

getBase

public java.lang.String getBase()
Gets the base directory for the resource

Returns:
base directory or null

getTarget

public java.lang.String getTarget()
Returns the target attribute.

Returns:
The target attribute.

getButtonStyle

public int getButtonStyle()
Returns the Id for the button style used to get the background images for a text button

Returns:
The button style id

filter

public boolean filter()
Returns if the filter is activated (default=true). This means that all Strings which should be displayed in the HTML page are HTML encoded

Returns:
true if string will be HTML encoded; false otherwise


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.