com.cc.framework.ui.model
Interface ButtonContainer

All Known Subinterfaces:
FormDesignModel, FrameContainer, FrameDesignModel, ListDesignModel, MessageDesignModel, SchedulerDesignModel, SwapSelectDesignModel, TreelistDesignModel, TreeSwapSelectDesignModel
All Known Implementing Classes:
ButtonContainerImp, FormDesignModelImp, FrameDesignModelImp, ListDesignModelImp, MessageDesignModelImp, SchedulerDesignModelImp, SwapSelectDesignModelImp, TreelistDesignModelImp, TreeSwapSelectDesignModelImp

public interface ButtonContainer

Interface for all objects that have nested buttons

Version:
$Revision: 1.3 $
Author:
Harald Schulz

Method Summary
 Permission getButtonPermission(ControlButton button)
          Retrieves the permission for the given button
 void setButtonPermission(ControlButton button, Permission permission)
          Sets whether a command button should be displayed by specifying an Access Control List.
 boolean showButton(ControlButton button, Principal principal)
          Checks if the button can be displayed.
 

Method Detail

getButtonPermission

public Permission getButtonPermission(ControlButton button)
Retrieves the permission for the given button

Parameters:
button - Button constant
Returns:
Permission or null

showButton

public boolean showButton(ControlButton button,
                          Principal principal)
Checks if the button can be displayed.

Parameters:
button - The Button to query
principal - The principal object
Returns:
boolean true if the button should be displayed

setButtonPermission

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

Parameters:
button - The Button to query
permission - Permission


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