com.cc.framework.ui.model.imp
Class CalendarDesignModelImp

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.ClientHandlerImp
      extended bycom.cc.framework.ui.model.imp.ControlDesignModelImp
          extended bycom.cc.framework.ui.model.imp.TextDesignModelImp
              extended bycom.cc.framework.ui.model.imp.CalendarDesignModelImp
All Implemented Interfaces:
AccessControlled, ActionBehavior, AjaxSupport, CalendarDesignModel, ClientHandler, ControlDesignModel, DesignModel, java.io.Serializable, TextDesignModel

public class CalendarDesignModelImp
extends TextDesignModelImp
implements CalendarDesignModel

The design model for the Calendar control

Since:
1.3
Version:
$Revision: 1.14 $
Author:
Gernot Schulz
See Also:
Serialized Form

Field Summary
private  java.lang.String buttonAlt
          The alt attribute.
private  java.lang.String buttonTooltip
          An additional tooltip displayed if the user moves the mose over the Calendar icon
private  java.lang.String format
          Date Format
private  java.lang.String layout
          The HTML/JSP Template to use
private  CalendarMode mode
          The mode controls how the calendar window should behave.
private static long serialVersionUID
          Serial Version UID
private  boolean showButton
          If this flag is set to false the button behind the input field will be hidden
private  java.lang.String showFormat
          Specifies if and where the format mask should be displayed
 
Fields inherited from class com.cc.framework.ui.model.imp.TextDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
CalendarDesignModelImp()
          Constructor for ColorPickerDesignModelImp
 
Method Summary
 java.lang.String getButtonAlt()
          Returns the alt attribute for the calendar image
 java.lang.String getButtonTooltip()
          Returns the tooltip for the calendar image
 java.lang.String getFormat()
          Returns the date and time format mask
 java.lang.String getLayout()
           
 CalendarMode getMode()
          Returns the mode in which the user can invoke the calendar.
 boolean getShowButton()
          Returns if Button for the PopUp should be displayed
 java.lang.String getShowFormat()
          Returns the alignment for the mask if displayed
 void setButtonAlt(java.lang.String buttonAlt)
          Sets the alt attribute for the calendar image
 void setButtonTooltip(java.lang.String buttonTooltip)
          Sets the tooltip for the calendar image
 void setFormat(java.lang.String format)
          Sets the date and format mask like "yyyy.mm.dd HH.mm.ss"
 void setLayout(java.lang.String layout)
          Sets the HTML-Layout which configures the Control
 void setMode(CalendarMode mode)
          Sets the mode in which the user can invoke the calendar.
 void setShowButton(boolean show)
          Shows the button behind the input field to open the calendar
 void setShowFormat(java.lang.String showFormat)
          Specifies if and where the mask should be displayed none (default) = displays no format mask right = displays the format mask behind the icon bottom = displays the format mask under the input field
 
Methods inherited from class com.cc.framework.ui.model.imp.TextDesignModelImp
filter, getConverter, getInputType, getMaxLength, getSize, setConverter, setFilter, setInputType, setMaxLength, setSize
 
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.TextDesignModel
filter, getConverter, getInputType, getMaxLength, getSize, getTooltip, setConverter, setFilter, setInputType, setMaxLength, setSize, setTooltip
 
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, 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, 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

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

format

private java.lang.String format
Date Format


layout

private java.lang.String layout
The HTML/JSP Template to use


showFormat

private java.lang.String showFormat
Specifies if and where the format mask should be displayed


buttonTooltip

private java.lang.String buttonTooltip
An additional tooltip displayed if the user moves the mose over the Calendar icon


buttonAlt

private java.lang.String buttonAlt
The alt attribute. Specifies the text if no image for the calendar is displayed.


showButton

private boolean showButton
If this flag is set to false the button behind the input field will be hidden


mode

private CalendarMode mode
The mode controls how the calendar window should behave.

Constructor Detail

CalendarDesignModelImp

public CalendarDesignModelImp()
Constructor for ColorPickerDesignModelImp

Method Detail

getFormat

public java.lang.String getFormat()
Description copied from interface: CalendarDesignModel
Returns the date and time format mask

Specified by:
getFormat in interface CalendarDesignModel
Returns:
returns the Date Format
See Also:
CalendarDesignModel.getFormat()

getLayout

public java.lang.String getLayout()
Specified by:
getLayout in interface CalendarDesignModel
Returns:
The HTML-Layout used to render the Control
See Also:
CalendarDesignModel.getLayout()

setFormat

public void setFormat(java.lang.String format)
Description copied from interface: CalendarDesignModel
Sets the date and format mask like "yyyy.mm.dd HH.mm.ss"

Specified by:
setFormat in interface CalendarDesignModel
Parameters:
format - The date and time format
See Also:
CalendarDesignModel.setFormat(java.lang.String)

setLayout

public void setLayout(java.lang.String layout)
Description copied from interface: CalendarDesignModel
Sets the HTML-Layout which configures the Control

Specified by:
setLayout in interface CalendarDesignModel
Parameters:
layout - URI of the HTML Layout
See Also:
CalendarDesignModel.setLayout(java.lang.String)

getShowFormat

public java.lang.String getShowFormat()
Description copied from interface: CalendarDesignModel
Returns the alignment for the mask if displayed

Specified by:
getShowFormat in interface CalendarDesignModel
Returns:
The alignment type
See Also:
CalendarDesignModel.getShowFormat()

setShowFormat

public void setShowFormat(java.lang.String showFormat)
Description copied from interface: CalendarDesignModel
Specifies if and where the mask should be displayed

Specified by:
setShowFormat in interface CalendarDesignModel
Parameters:
showFormat - Alignment
See Also:
CalendarDesignModel.setShowFormat(java.lang.String)

setButtonAlt

public void setButtonAlt(java.lang.String buttonAlt)
Description copied from interface: CalendarDesignModel
Sets the alt attribute for the calendar image

Specified by:
setButtonAlt in interface CalendarDesignModel
Parameters:
buttonAlt - The alt attribute if no image is displayed
See Also:
CalendarDesignModel.setButtonAlt(java.lang.String)

setButtonTooltip

public void setButtonTooltip(java.lang.String buttonTooltip)
Description copied from interface: CalendarDesignModel
Sets the tooltip for the calendar image

Specified by:
setButtonTooltip in interface CalendarDesignModel
Parameters:
buttonTooltip - The tooltip
See Also:
CalendarDesignModel.setButtonTooltip(java.lang.String)

getButtonTooltip

public java.lang.String getButtonTooltip()
Description copied from interface: CalendarDesignModel
Returns the tooltip for the calendar image

Specified by:
getButtonTooltip in interface CalendarDesignModel
Returns:
The tooltip
See Also:
CalendarDesignModel.getButtonTooltip()

getButtonAlt

public java.lang.String getButtonAlt()
Description copied from interface: CalendarDesignModel
Returns the alt attribute for the calendar image

Specified by:
getButtonAlt in interface CalendarDesignModel
Returns:
The alt attribute if no image is displayed
See Also:
CalendarDesignModel.getButtonAlt()

setShowButton

public void setShowButton(boolean show)
Description copied from interface: CalendarDesignModel
Shows the button behind the input field to open the calendar

Specified by:
setShowButton in interface CalendarDesignModel
Parameters:
show - The State: true if the button should be displayed; false otherwise
See Also:
CalendarDesignModel.setShowButton(boolean)

getShowButton

public boolean getShowButton()
Description copied from interface: CalendarDesignModel
Returns if Button for the PopUp should be displayed

Specified by:
getShowButton in interface CalendarDesignModel
Returns:
true if the button should be displayed; false otherwise
See Also:
CalendarDesignModel.getShowButton()

getMode

public CalendarMode getMode()
Description copied from interface: CalendarDesignModel
Returns the mode in which the user can invoke the calendar.

Specified by:
getMode in interface CalendarDesignModel
Returns:
The mode
See Also:
CalendarDesignModel.getMode()

setMode

public void setMode(CalendarMode mode)
Description copied from interface: CalendarDesignModel
Sets the mode in which the user can invoke the calendar.

Specified by:
setMode in interface CalendarDesignModel
Parameters:
mode - The mode
See Also:
CalendarDesignModel.setMode(com.cc.framework.ui.model.CalendarMode)


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