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

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.SchedulerDesignModelImp
All Implemented Interfaces:
AccessControlled, ActionBehavior, AjaxSupport, ButtonContainer, ClientHandler, ControlDesignModel, DesignModel, FrameContainer, SchedulerDesignModel, java.io.Serializable

public class SchedulerDesignModelImp
extends ControlDesignModelImp
implements SchedulerDesignModel

DesignModel for the Appointment Scheduler

Version:
$Revision: 1.29 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  ButtonContainer buttons
          The users permission which is necessary to see any buttons
private  int checkBoxMask
          Indicates where to displayed checkboxes
The appointment entries must implement the AppointmentCheckable Interface, so that the control element can draw the checkboxes.
private  int columns
          the number of columns in year view
private  boolean compressWeekEnds
          Compress Weekends in Month View
private  int dayEndHour
          The ending hour of the day
private  int dayMask
          A Mask indicating the working days of the week.
private  int dayStartHour
          The starting hour of the day
private  boolean filter
          Specifies if all String should be converted into valid HTML Strings
private  int firstDayOfWeek
          The index of the first day of the week.
private  java.util.ArrayList frames
          Inner Frames
private  ImageModel image
          The optional title image
private  ImageMap imageMap
          The Image Map
private  int increment
          The number of month to increment in year view when the user clicks on one of the navigation buttons.
private  int interval
          The time interval for day view.
private  int maxVisible
          The maximum number of visible Appointments for one day
private  boolean popups
          Indicates if appointments in year view should be displayed in popup windows
private  int rows
          the number of rows in year view
private static long serialVersionUID
          Serial Version UID
private  boolean showAllDayArea
          Schow or hide the all day area in day view
private  boolean showFrame
          Enables or disables the controls frame
private  boolean showWeekEndDays
          Schow Weekends in month and navigator view
private  java.lang.String title
          The Title of the control
private  int viewMask
          Bit combination of the visible view buttons for this scheduler control.
private  int workEndHour
          The working end hour of the day
private  int workStartHour
          The working start hour of the day
 
Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
SchedulerDesignModelImp()
          Constructor
 
Method Summary
 void addInnerFrame(InnerFrame frame)
          Adds a inner frame to the List
 boolean compressWeekEnds()
           
 Permission getButtonPermission(ControlButton button)
          Retrieves the permission for the given button
 int getCheckBoxMask()
          Retrieves a bit mask that indicates on what view levels a checkbox should be shown for this control
 int getColumns()
          Retrieves the number of columns in year view
 int getDayEndHour()
           
 int getDayStartHour()
           
 boolean getFilter()
          Returns the Filter setting
 int getFirstDayOfWeek()
          Gets the first day of the week
 ImageModel getImage()
          Returns the image for the frames title
 ImageMap getImageMap()
          Returns the associated ImageMap
 InnerFrame[] getInnerFrames(Principal principal, java.lang.Object layoutHint)
          Retrieves a list of only the inner frames that are matching the given layout hint
 int getInterval()
           
 int getMaxVisible()
          Retrieves the maximum visible appointments for one Day
 int getMonthIncrement()
          retrieves the number of month to increment in year view when the user clicks on one of the navigation buttons.
 int getRows()
          Retrieves the number of rows in year view
 java.lang.String getTitle()
          Returns the Title
 int getViewMask()
          Retrieves a bit mask with all the possible view buttons for this control
 int getWorkEndHour()
           
 int getWorkingDayMask()
          Retrieves a Mask with the weeks working days.
 int getWorkStartHour()
           
 void setButtonPermission(ControlButton button, Permission permission)
          Sets whether a command button should be displayed by specifying an Access Control List.
 void setCheckBoxMask(int checkBoxMask)
          Sets a bit mask that indicates on what view levels checkboxes should be shown for this control
 void setColumns(int columns)
          Sets the number of columns in year view
 void setCompressWeekEnds(boolean comress)
          Sets a value indicating whether the weekends should be compressed in one day
 void setDayEndHour(int hour)
          Sets a value indicating the end of the hour range displayed by the Schedule on DayView.
 void setDayStartHour(int hour)
          Sets a value indicating the start of the hour range displayed by the Schedule on DayView.
 void setFilter(boolean filter)
          Sets the Filter.
 void setFirstDayOfWeek(int dayIndex)
          Sets the first day of the week
 void setImage(ImageModel img)
          Sets an image for the frames title
 void setImageMap(ImageMap map)
          Specifies the name of an image map.
 void setInterval(int interval)
          Sets a value specifying the interval in which the hour is divided.
 void setMaxVisible(int max)
          Sets the maximum visible appointments for one Day
 void setMonthIncrement(int increment)
          Sets the number of month to increment in year view when the user clicks on one of the navigation buttons.
 void setRows(int rows)
          Sets the number of rows in year view
 void setShowAllDayArea(boolean show)
          Sets a value specifying whether the all-day area is displayed.
 void setShowFrame(boolean show)
          Disables the frame
 void setShowPopups(boolean show)
           
 void setShowWeekEndDays(boolean show)
          Sets a value specifying whether the week end days are shown in week, month and navigator view.
 void setTitle(java.lang.String title)
          Sets the title of the ListControl which is display in the Header
 void setViewMask(int mask)
          Sets the visible view buttons for this scheduler control.
 void setWorkEndHour(int hour)
          Sets a value indicating the end time of the day for the working hours.
 void setWorkingDayMask(int dayMask)
          An attempt to set DayOfWeekMask to any value less than 0 or greater than 127 (0x7F) results in an OutOfBounds Exception.
 void setWorkStartHour(int hour)
          Sets a value indicating the start time of the day for the working hours.
 boolean showAllDayArea()
           
 boolean showButton(ControlButton button, Principal principal)
          Checks if the button can be displayed.
 boolean showFrame()
           
 boolean showPopups()
           
 boolean showWeekEndDays()
           
 
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

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

title

private java.lang.String title
The Title of the control


filter

private boolean filter
Specifies if all String should be converted into valid HTML Strings


showFrame

private boolean showFrame
Enables or disables the controls frame


buttons

private ButtonContainer buttons
The users permission which is necessary to see any buttons


imageMap

private ImageMap imageMap
The Image Map


compressWeekEnds

private boolean compressWeekEnds
Compress Weekends in Month View


showWeekEndDays

private boolean showWeekEndDays
Schow Weekends in month and navigator view


showAllDayArea

private boolean showAllDayArea
Schow or hide the all day area in day view


dayStartHour

private int dayStartHour
The starting hour of the day


dayEndHour

private int dayEndHour
The ending hour of the day


workStartHour

private int workStartHour
The working start hour of the day


workEndHour

private int workEndHour
The working end hour of the day


interval

private int interval
The time interval for day view. Valid values are 5, 6, 15, 30 or 60


maxVisible

private int maxVisible
The maximum number of visible Appointments for one day


dayMask

private int dayMask
A Mask indicating the working days of the week. Default is (Mo - Fr)


firstDayOfWeek

private int firstDayOfWeek
The index of the first day of the week. A value of 0 indicates that the Locales default should be used


columns

private int columns
the number of columns in year view


rows

private int rows
the number of rows in year view


increment

private int increment
The number of month to increment in year view when the user clicks on one of the navigation buttons. A value of 0 resets the the control to the default increment which is the number of visible months (= rows * columns)


popups

private boolean popups
Indicates if appointments in year view should be displayed in popup windows


checkBoxMask

private int checkBoxMask
Indicates where to displayed checkboxes
The appointment entries must implement the AppointmentCheckable Interface, so that the control element can draw the checkboxes.


viewMask

private int viewMask
Bit combination of the visible view buttons for this scheduler control.


image

private ImageModel image
The optional title image


frames

private java.util.ArrayList frames
Inner Frames

Constructor Detail

SchedulerDesignModelImp

public SchedulerDesignModelImp()
Constructor

Method Detail

getTitle

public java.lang.String getTitle()
Description copied from interface: SchedulerDesignModel
Returns the Title

Specified by:
getTitle in interface SchedulerDesignModel
Returns:
Title
See Also:
SchedulerDesignModel.getTitle()

setShowFrame

public void setShowFrame(boolean show)
Description copied from interface: SchedulerDesignModel
Disables the frame

Specified by:
setShowFrame in interface SchedulerDesignModel
Parameters:
show - true if the lists frame should be shown
See Also:
SchedulerDesignModel.setShowFrame(boolean)

setTitle

public void setTitle(java.lang.String title)
Description copied from interface: SchedulerDesignModel
Sets the title of the ListControl which is display in the Header

Specified by:
setTitle in interface SchedulerDesignModel
Parameters:
title - The main title of the control
See Also:
SchedulerDesignModel.setTitle(java.lang.String)

showFrame

public boolean showFrame()
Specified by:
showFrame in interface SchedulerDesignModel
Returns:
true if the frame should be shown
See Also:
SchedulerDesignModel.showFrame()

compressWeekEnds

public boolean compressWeekEnds()
Specified by:
compressWeekEnds in interface SchedulerDesignModel
Returns:
Gets a value indicating whether the weekends should be compressed in one day
See Also:
SchedulerDesignModel.compressWeekEnds()

setImageMap

public void setImageMap(ImageMap map)
Description copied from interface: SchedulerDesignModel
Specifies the name of an image map.

Specified by:
setImageMap in interface SchedulerDesignModel
Parameters:
map - ImageMap
See Also:
SchedulerDesignModel.setImageMap(com.cc.framework.ui.ImageMap)

getImageMap

public ImageMap getImageMap()
Description copied from interface: SchedulerDesignModel
Returns the associated ImageMap

Specified by:
getImageMap in interface SchedulerDesignModel
Returns:
ImageMap
See Also:
SchedulerDesignModel.getImageMap()

getDayEndHour

public int getDayEndHour()
Specified by:
getDayEndHour in interface SchedulerDesignModel
Returns:
Gets a value indicating the end of the hour range displayed by the Schedule on DayView.
See Also:
SchedulerDesignModel.getDayEndHour()

getDayStartHour

public int getDayStartHour()
Specified by:
getDayStartHour in interface SchedulerDesignModel
Returns:
Gets a value indicating the start of the hour range displayed by the Schedule on DayView.
See Also:
SchedulerDesignModel.getDayStartHour()

getWorkEndHour

public int getWorkEndHour()
Specified by:
getWorkEndHour in interface SchedulerDesignModel
Returns:
Gets a value indicating the end time of the day for the working hours.
See Also:
SchedulerDesignModel.getWorkEndHour()

getWorkStartHour

public int getWorkStartHour()
Specified by:
getWorkStartHour in interface SchedulerDesignModel
Returns:
Gets a value indicating the start time of the day for the working hours.
See Also:
SchedulerDesignModel.getWorkStartHour()

setCompressWeekEnds

public void setCompressWeekEnds(boolean comress)
Description copied from interface: SchedulerDesignModel
Sets a value indicating whether the weekends should be compressed in one day

Specified by:
setCompressWeekEnds in interface SchedulerDesignModel
Parameters:
comress - boolean value
See Also:
SchedulerDesignModel.setCompressWeekEnds(boolean)

setDayEndHour

public void setDayEndHour(int hour)
Description copied from interface: SchedulerDesignModel
Sets a value indicating the end of the hour range displayed by the Schedule on DayView.

Specified by:
setDayEndHour in interface SchedulerDesignModel
Parameters:
hour - the start hour
See Also:
SchedulerDesignModel.setDayEndHour(int)

setDayStartHour

public void setDayStartHour(int hour)
Description copied from interface: SchedulerDesignModel
Sets a value indicating the start of the hour range displayed by the Schedule on DayView.

Specified by:
setDayStartHour in interface SchedulerDesignModel
Parameters:
hour - the start hour
See Also:
SchedulerDesignModel.setDayStartHour(int)

setShowAllDayArea

public void setShowAllDayArea(boolean show)
Description copied from interface: SchedulerDesignModel
Sets a value specifying whether the all-day area is displayed.

Specified by:
setShowAllDayArea in interface SchedulerDesignModel
Parameters:
show - boolean value
See Also:
SchedulerDesignModel.setShowAllDayArea(boolean)

setWorkEndHour

public void setWorkEndHour(int hour)
Description copied from interface: SchedulerDesignModel
Sets a value indicating the end time of the day for the working hours.

Specified by:
setWorkEndHour in interface SchedulerDesignModel
Parameters:
hour - the start hour
See Also:
SchedulerDesignModel.setWorkEndHour(int)

setWorkStartHour

public void setWorkStartHour(int hour)
Description copied from interface: SchedulerDesignModel
Sets a value indicating the start time of the day for the working hours.

Specified by:
setWorkStartHour in interface SchedulerDesignModel
Parameters:
hour - the start hour
See Also:
SchedulerDesignModel.setWorkStartHour(int)

showAllDayArea

public boolean showAllDayArea()
Specified by:
showAllDayArea in interface SchedulerDesignModel
Returns:
Gets a value specifying whether the all-day area is displayed.
See Also:
SchedulerDesignModel.showAllDayArea()

setShowWeekEndDays

public void setShowWeekEndDays(boolean show)
Description copied from interface: SchedulerDesignModel
Sets a value specifying whether the week end days are shown in week, month and navigator view.

Specified by:
setShowWeekEndDays in interface SchedulerDesignModel
Parameters:
show - boolean value
See Also:
SchedulerDesignModel.setShowWeekEndDays(boolean)

showWeekEndDays

public boolean showWeekEndDays()
Specified by:
showWeekEndDays in interface SchedulerDesignModel
Returns:
Gets a value specifying whether the week end days are shown in week, month and navigator view.
See Also:
SchedulerDesignModel.showWeekEndDays()

getInterval

public int getInterval()
Specified by:
getInterval in interface SchedulerDesignModel
Returns:
Gets a value specifying the interval in which the hour is divided.
See Also:
SchedulerDesignModel.getInterval()

setInterval

public void setInterval(int interval)
Description copied from interface: SchedulerDesignModel
Sets a value specifying the interval in which the hour is divided.

Specified by:
setInterval in interface SchedulerDesignModel
Parameters:
interval - the interval in minutes (5|6|10|15|30|60)
See Also:
SchedulerDesignModel.setInterval(int)

getWorkingDayMask

public int getWorkingDayMask()
Description copied from interface: SchedulerDesignModel
Retrieves a Mask with the weeks working days. The mask is a bitwise or combination of the following integer constants representing each day of the week:

Specified by:
getWorkingDayMask in interface SchedulerDesignModel
Returns:
Mask
See Also:
SchedulerDesignModel.getWorkingDayMask()

setWorkingDayMask

public void setWorkingDayMask(int dayMask)
An attempt to set DayOfWeekMask to any value less than 0 or greater than 127 (0x7F) results in an OutOfBounds Exception.

Specified by:
setWorkingDayMask in interface SchedulerDesignModel
Parameters:
dayMask - Mask
See Also:
SchedulerDesignModel.setWorkingDayMask(int)

getFirstDayOfWeek

public int getFirstDayOfWeek()
Description copied from interface: SchedulerDesignModel
Gets the first day of the week

Specified by:
getFirstDayOfWeek in interface SchedulerDesignModel
Returns:
Day index of the first Day of the week or 0 for the locales default
See Also:
SchedulerDesignModel.getFirstDayOfWeek()

setFirstDayOfWeek

public void setFirstDayOfWeek(int dayIndex)
Description copied from interface: SchedulerDesignModel
Sets the first day of the week

Specified by:
setFirstDayOfWeek in interface SchedulerDesignModel
Parameters:
dayIndex - Day index of the first Day of the week or 0 for the locales default
See Also:
SchedulerDesignModel.setFirstDayOfWeek(int)

getMaxVisible

public int getMaxVisible()
Description copied from interface: SchedulerDesignModel
Retrieves the maximum visible appointments for one Day

Specified by:
getMaxVisible in interface SchedulerDesignModel
Returns:
Maximum visible Appointments for one Day
See Also:
SchedulerDesignModel.getMaxVisible()

setMaxVisible

public void setMaxVisible(int max)
Description copied from interface: SchedulerDesignModel
Sets the maximum visible appointments for one Day

Specified by:
setMaxVisible in interface SchedulerDesignModel
Parameters:
max - Maximum visible Appointments for one Day
See Also:
SchedulerDesignModel.setMaxVisible(int)

addInnerFrame

public void addInnerFrame(InnerFrame frame)
Description copied from interface: FrameContainer
Adds a inner frame to the List

Specified by:
addInnerFrame in interface FrameContainer
Parameters:
frame - the inner frame to add
See Also:
FrameContainer.addInnerFrame(com.cc.framework.ui.model.InnerFrame)

getInnerFrames

public InnerFrame[] getInnerFrames(Principal principal,
                                   java.lang.Object layoutHint)
Description copied from interface: FrameContainer
Retrieves a list of only the inner frames that are matching the given layout hint

Specified by:
getInnerFrames in interface FrameContainer
Parameters:
principal - The principal object for permission tests. This parameter can be null
layoutHint - The layout hint that specifies what frames should be selected: AlignmentType.TOP - header frames AlignmentType.BOTTOM - footer frames
Returns:
Frame list
See Also:
FrameContainer.getInnerFrames(com.cc.framework.security.Principal, java.lang.Object)

getImage

public ImageModel getImage()
Description copied from interface: FrameContainer
Returns the image for the frames title

Specified by:
getImage in interface FrameContainer
Returns:
ImageModel
See Also:
FrameContainer.getImage()

setImage

public void setImage(ImageModel img)
Description copied from interface: FrameContainer
Sets an image for the frames title

Specified by:
setImage in interface FrameContainer
Parameters:
img - ImageModel
See Also:
FrameContainer.setImage(com.cc.framework.ui.model.ImageModel)

getColumns

public int getColumns()
Description copied from interface: SchedulerDesignModel
Retrieves the number of columns in year view

Specified by:
getColumns in interface SchedulerDesignModel
Returns:
number of columns
See Also:
SchedulerDesignModel.getColumns()

getRows

public int getRows()
Description copied from interface: SchedulerDesignModel
Retrieves the number of rows in year view

Specified by:
getRows in interface SchedulerDesignModel
Returns:
number of rows
See Also:
SchedulerDesignModel.getRows()

setColumns

public void setColumns(int columns)
Description copied from interface: SchedulerDesignModel
Sets the number of columns in year view

Specified by:
setColumns in interface SchedulerDesignModel
Parameters:
columns - number of columns
See Also:
SchedulerDesignModel.setColumns(int)

setRows

public void setRows(int rows)
Description copied from interface: SchedulerDesignModel
Sets the number of rows in year view

Specified by:
setRows in interface SchedulerDesignModel
Parameters:
rows - number of rows
See Also:
SchedulerDesignModel.setRows(int)

setShowPopups

public void setShowPopups(boolean show)
Specified by:
setShowPopups in interface SchedulerDesignModel
Parameters:
show - true to show appointments in year view in a popup window
See Also:
SchedulerDesignModel.setShowPopups(boolean)

showPopups

public boolean showPopups()
Specified by:
showPopups in interface SchedulerDesignModel
Returns:
true to show appointments in year view in a popup window
See Also:
SchedulerDesignModel.showPopups()

getViewMask

public int getViewMask()
Description copied from interface: SchedulerDesignModel
Retrieves a bit mask with all the possible view buttons for this control

Specified by:
getViewMask in interface SchedulerDesignModel
Returns:
Bit combination of Scheduler views
See Also:
SchedulerDesignModel.getViewMask()

setViewMask

public void setViewMask(int mask)
Description copied from interface: SchedulerDesignModel
Sets the visible view buttons for this scheduler control.

Specified by:
setViewMask in interface SchedulerDesignModel
Parameters:
mask - Bit combination of Scheduler views
See Also:
SchedulerDesignModel.setViewMask(int)

getFilter

public boolean getFilter()
Description copied from interface: SchedulerDesignModel
Returns the Filter setting

Specified by:
getFilter in interface SchedulerDesignModel
Returns:
boolean
See Also:
SchedulerDesignModel.getFilter()

setFilter

public void setFilter(boolean filter)
Description copied from interface: SchedulerDesignModel
Sets the Filter. If set to true, all String will be converted into valid HTML-strings

Specified by:
setFilter in interface SchedulerDesignModel
Parameters:
filter - true if Strings should be HTML encoded
See Also:
SchedulerDesignModel.setFilter(boolean)

getMonthIncrement

public int getMonthIncrement()
Description copied from interface: SchedulerDesignModel
retrieves the number of month to increment in year view when the user clicks on one of the navigation buttons. A value of 0 resets the the control to the default increment which is the number of visible months (= rows * columns)

Specified by:
getMonthIncrement in interface SchedulerDesignModel
Returns:
the number of month to increment
See Also:
SchedulerDesignModel.getMonthIncrement()

setMonthIncrement

public void setMonthIncrement(int increment)
Description copied from interface: SchedulerDesignModel
Sets the number of month to increment in year view when the user clicks on one of the navigation buttons. A value of 0 resets the the control to the default increment which is the number of visible months (= rows * columns)

Specified by:
setMonthIncrement in interface SchedulerDesignModel
Parameters:
increment - Number of columns to increment
See Also:
SchedulerDesignModel.setMonthIncrement(int)

getCheckBoxMask

public int getCheckBoxMask()
Description copied from interface: SchedulerDesignModel
Retrieves a bit mask that indicates on what view levels a checkbox should be shown for this control

Specified by:
getCheckBoxMask in interface SchedulerDesignModel
Returns:
Bit combination of Scheduler views
See Also:
SchedulerDesignModel.getCheckBoxMask()

setCheckBoxMask

public void setCheckBoxMask(int checkBoxMask)
Description copied from interface: SchedulerDesignModel
Sets a bit mask that indicates on what view levels checkboxes should be shown for this control

Specified by:
setCheckBoxMask in interface SchedulerDesignModel
Parameters:
checkBoxMask - Bit combination of Scheduler views
See Also:
SchedulerDesignModel.setCheckBoxMask(int)

getButtonPermission

public Permission getButtonPermission(ControlButton button)
Description copied from interface: ButtonContainer
Retrieves the permission for the given button

Specified by:
getButtonPermission in interface ButtonContainer
Parameters:
button - Button constant
Returns:
Permission or null
See Also:
ButtonContainer.getButtonPermission(com.cc.framework.ui.control.ControlButton)

showButton

public boolean showButton(ControlButton button,
                          Principal principal)
Description copied from interface: ButtonContainer
Checks if the button can be displayed.

Specified by:
showButton in interface ButtonContainer
Parameters:
button - The Button to query
principal - The principal object
Returns:
boolean true if the button should be displayed
See Also:
ButtonContainer.showButton(com.cc.framework.ui.control.ControlButton, com.cc.framework.security.Principal)

setButtonPermission

public void setButtonPermission(ControlButton button,
                                Permission permission)
Description copied from interface: ButtonContainer
Sets whether a command button should be displayed by specifying an Access Control List.

Specified by:
setButtonPermission in interface ButtonContainer
Parameters:
button - The Button to query
permission - Permission
See Also:
ButtonContainer.setButtonPermission(com.cc.framework.ui.control.ControlButton, com.cc.framework.security.Permission)


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