|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.model.imp.ClientHandlerImp com.cc.framework.ui.model.imp.ControlDesignModelImp com.cc.framework.ui.model.imp.FrameDesignModelImp
Designmodel for frames
Field Summary | |
private ButtonContainer |
buttons
The users permission which is necessary to see any buttons |
private java.lang.String |
caption
The title of the frame |
private java.lang.String |
detail
The frames subtitle |
private java.util.ArrayList |
frames
Inner Frames |
private ImageModel |
image
The optional title image |
private static long |
serialVersionUID
Serial Version UID |
private boolean |
showFrame
Enables or disables the frames frame |
Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp |
|
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
|
Constructor Summary | |
FrameDesignModelImp()
Constructor for FrameDesignModelImp |
Method Summary | |
void |
addInnerFrame(InnerFrame frame)
Adds a inner frame to the List |
Permission |
getButtonPermission(ControlButton button)
Retrieves the permission for the given button |
java.lang.String |
getCaption()
Returns the Caption of the Frame |
java.lang.String |
getDetail()
Returns the Detail, which is displayed right of the Caption |
ImageModel |
getImage()
Returns the image for the frames title |
InnerFrame[] |
getInnerFrames(Principal principal,
java.lang.Object layoutHint)
Retrieves a list of only the inner frames that are matching the given layout hint |
void |
setButtonPermission(ControlButton button,
Permission permission)
Sets whether a command button should be displayed by specifying an Access Control List. |
void |
setCaption(java.lang.String caption)
Sets the Caption |
void |
setDetail(java.lang.String detail)
Sets the Detail |
void |
setImage(ImageModel img)
Sets an image for the frames title |
void |
setShowFrame(boolean show)
Disables the frames border |
boolean |
showButton(ControlButton button,
Principal principal)
Checks if the button can be displayed. |
boolean |
showFrame()
|
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 |
private static final long serialVersionUID
private java.lang.String caption
private java.lang.String detail
private boolean showFrame
private ImageModel image
private ButtonContainer buttons
private java.util.ArrayList frames
Constructor Detail |
public FrameDesignModelImp()
Method Detail |
public java.lang.String getCaption()
FrameDesignModel
getCaption
in interface FrameDesignModel
FrameDesignModel.getCaption()
public void setCaption(java.lang.String caption)
FrameDesignModel
setCaption
in interface FrameDesignModel
caption
- CaptionFrameDesignModel.setCaption(java.lang.String)
public java.lang.String getDetail()
FrameDesignModel
getDetail
in interface FrameDesignModel
FrameDesignModel.getDetail()
public void setDetail(java.lang.String detail)
FrameDesignModel
setDetail
in interface FrameDesignModel
detail
- Detail StringFrameDesignModel.setDetail(java.lang.String)
public void setShowFrame(boolean show)
FrameDesignModel
setShowFrame
in interface FrameDesignModel
show
- true
if the frame should be shownFrameDesignModel.setShowFrame(boolean)
public boolean showFrame()
showFrame
in interface FrameDesignModel
true
if the frame should be shownFrameDesignModel.showFrame()
public void addInnerFrame(InnerFrame frame)
FrameContainer
addInnerFrame
in interface FrameContainer
frame
- the inner frame to addFrameContainer.addInnerFrame(com.cc.framework.ui.model.InnerFrame)
public InnerFrame[] getInnerFrames(Principal principal, java.lang.Object layoutHint)
FrameContainer
getInnerFrames
in interface FrameContainer
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
FrameContainer.getInnerFrames(com.cc.framework.security.Principal,
java.lang.Object)
public ImageModel getImage()
FrameContainer
getImage
in interface FrameContainer
FrameContainer.getImage()
public void setImage(ImageModel img)
FrameContainer
setImage
in interface FrameContainer
img
- ImageModelFrameContainer.setImage(com.cc.framework.ui.model.ImageModel)
public Permission getButtonPermission(ControlButton button)
ButtonContainer
getButtonPermission
in interface ButtonContainer
button
- Button constant
null
ButtonContainer.getButtonPermission(com.cc.framework.ui.control.ControlButton)
public boolean showButton(ControlButton button, Principal principal)
ButtonContainer
showButton
in interface ButtonContainer
button
- The Button to queryprincipal
- The principal object
true
if the button should be displayedButtonContainer.showButton(com.cc.framework.ui.control.ControlButton,
com.cc.framework.security.Principal)
public void setButtonPermission(ControlButton button, Permission permission)
ButtonContainer
setButtonPermission
in interface ButtonContainer
button
- The Button to querypermission
- PermissionButtonContainer.setButtonPermission(com.cc.framework.ui.control.ControlButton,
com.cc.framework.security.Permission)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |