com.cc.framework.ui.model
Interface CalendarDesignModel

All Superinterfaces:
AccessControlled, ActionBehavior, AjaxSupport, ClientHandler, ControlDesignModel, DesignModel, TextDesignModel
All Known Implementing Classes:
CalendarDesignModelImp

public interface CalendarDesignModel
extends TextDesignModel

The design model for the calendar control The design model holds information for rendering and the layout of the control.

Since:
1.3
Version:
$Revision: 1.12 $
Author:
Gernot Schulz

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 alt)
          Sets the alt attribute for the calendar image
 void setButtonTooltip(java.lang.String tooltip)
          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 align)
          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 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
 

Method Detail

getLayout

public java.lang.String getLayout()
Returns:
The HTML-Layout used to render the Control

setLayout

public void setLayout(java.lang.String layout)
Sets the HTML-Layout which configures the Control

Parameters:
layout - URI of the HTML Layout

getFormat

public java.lang.String getFormat()
Returns the date and time format mask

Returns:
returns the Date Format

setFormat

public void setFormat(java.lang.String format)
Sets the date and format mask like "yyyy.mm.dd HH.mm.ss"

Parameters:
format - The date and time format

setShowFormat

public void setShowFormat(java.lang.String align)
Specifies if and where the mask should be displayed

Parameters:
align - Alignment

getShowFormat

public java.lang.String getShowFormat()
Returns the alignment for the mask if displayed

Returns:
The alignment type

setButtonTooltip

public void setButtonTooltip(java.lang.String tooltip)
Sets the tooltip for the calendar image

Parameters:
tooltip - The tooltip

getButtonTooltip

public java.lang.String getButtonTooltip()
Returns the tooltip for the calendar image

Returns:
The tooltip

setButtonAlt

public void setButtonAlt(java.lang.String alt)
Sets the alt attribute for the calendar image

Parameters:
alt - The alt attribute if no image is displayed

getButtonAlt

public java.lang.String getButtonAlt()
Returns the alt attribute for the calendar image

Returns:
The alt attribute if no image is displayed

setShowButton

public void setShowButton(boolean show)
Shows the button behind the input field to open the calendar

Parameters:
show - The State: true if the button should be displayed; false otherwise

getShowButton

public boolean getShowButton()
Returns if Button for the PopUp should be displayed

Returns:
true if the button should be displayed; false otherwise

setMode

public void setMode(CalendarMode mode)
Sets the mode in which the user can invoke the calendar.

Parameters:
mode - The mode

getMode

public CalendarMode getMode()
Returns the mode in which the user can invoke the calendar.

Returns:
The mode


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