|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.model.imp.PanelContentDesignModelImp
Designmoel for the panel content
| Field Summary | |
private java.lang.String |
action
The action |
private boolean |
filter
Specifies if all String should be converted into there HTML representation |
private ImageModel |
image
The image to be displayed in the Panel |
private java.util.ArrayList |
items
Buffer for the items |
private java.lang.String |
localeName
Locale Setting |
private java.lang.String |
more
Field more |
private Permission |
permission
Permission |
private static long |
serialVersionUID
Serial Verion UID |
private java.lang.String |
title
The title |
private java.lang.String |
tooltip
The tooltip |
| Constructor Summary | |
PanelContentDesignModelImp()
Constructor |
|
| Method Summary | |
void |
addItem(PanelItemDesignModel newItem)
Adds a panel item |
boolean |
filter()
Returns if the filter is activated (default=true). |
java.lang.String |
getAction()
Returns the action |
ImageModel |
getImage()
Returns the image for the content body |
PanelItemDesignModel[] |
getItems()
Returns a collection with the items |
java.lang.String |
getLocaleName()
Gets the Local Setting for this element |
java.lang.String |
getMore()
Return the text which should be displayed if there is a "other items" link. |
Permission |
getPermission()
Returns the authorizations required to access an object If the method returns null no access rights is required. |
java.lang.String |
getTitle()
Returns the title |
java.lang.String |
getTooltip()
Returns the Tooltip |
void |
removeItem(PanelItemDesignModel item)
Removes a panel item |
void |
setAction(java.lang.String action)
Sets the action which should be processed if the user clicks on the "more link". |
void |
setFilter(boolean filter)
Activates the HTML encoding (filter). |
void |
setImage(ImageModel image)
Sets an image for the content body |
void |
setLocaleName(java.lang.String locale)
Sets the Locale configuration for this element |
void |
setMore(java.lang.String newMore)
Return the text which should be displayed if there are more items as displayed |
void |
setPermission(Permission permission)
Sets a list with permissions to access this object. |
void |
setTitle(java.lang.String title)
Sets the title |
void |
setTooltip(java.lang.String tooltip)
Sets the Tooltip |
boolean |
show(Principal principal)
Checks if the Object has a required permission. |
int |
size()
Returns the number of items |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
private java.lang.String title
private java.lang.String more
private ImageModel image
private java.lang.String action
private java.lang.String tooltip
private boolean filter
private java.lang.String localeName
private java.util.ArrayList items
private Permission permission
| Constructor Detail |
public PanelContentDesignModelImp()
| Method Detail |
public void addItem(PanelItemDesignModel newItem)
PanelContentDesignModel
addItem in interface PanelContentDesignModelnewItem - PanelItemDesignModelPanelContentDesignModel.addItem(PanelItemDesignModel)public void removeItem(PanelItemDesignModel item)
PanelContentDesignModel
removeItem in interface PanelContentDesignModelitem - PanelItemDesignModelPanelContentDesignModel.removeItem(PanelItemDesignModel)public PanelItemDesignModel[] getItems()
PanelContentDesignModel
getItems in interface PanelContentDesignModelPanelContentDesignModel.getItems()public int size()
PanelContentDesignModel
size in interface PanelContentDesignModelPanelContentDesignModel.size()public java.lang.String getMore()
PanelContentDesignModel
getMore in interface PanelContentDesignModelPanelContentDesignModel.getMore()public java.lang.String getTitle()
PanelContentDesignModel
getTitle in interface PanelContentDesignModelPanelContentDesignModel.getTitle()public void setImage(ImageModel image)
PanelContentDesignModel
setImage in interface PanelContentDesignModelimage - ImageModelPanelContentDesignModel.setImage(ImageModel image)public void setMore(java.lang.String newMore)
PanelContentDesignModel
setMore in interface PanelContentDesignModelnewMore - The hint to be display if there are more itemsPanelContentDesignModel.setMore(java.lang.String)public void setTitle(java.lang.String title)
PanelContentDesignModel
setTitle in interface PanelContentDesignModeltitle - The titlePanelContentDesignModel.setTitle(String title)public ImageModel getImage()
PanelContentDesignModel
getImage in interface PanelContentDesignModelPanelContentDesignModel.getImage()public void setAction(java.lang.String action)
PanelContentDesignModel
setAction in interface PanelContentDesignModelaction - The action to processPanelContentDesignModel.setAction(String)public java.lang.String getAction()
PanelContentDesignModel
getAction in interface PanelContentDesignModelPanelContentDesignModel.getAction()public Permission getPermission()
AccessControllednull no access rights is required.
getPermission in interface AccessControlledAccessControlled.getPermission()public void setPermission(Permission permission)
PanelContentDesignModel
setPermission in interface PanelContentDesignModelpermission - PermissionPanelContentDesignModel.setPermission(com.cc.framework.security.Permission)public void setTooltip(java.lang.String tooltip)
PanelContentDesignModel
setTooltip in interface PanelContentDesignModeltooltip - TooltipPanelContentDesignModel.setTooltip(java.lang.String)public java.lang.String getTooltip()
PanelContentDesignModel
getTooltip in interface PanelContentDesignModelPanelContentDesignModel.getTooltip()public boolean filter()
PanelContentDesignModel
filter in interface PanelContentDesignModeltrue if string will be HTML encoded;
false otherwise. If a null is
returned than the filter of the enclosing CrumbControl should be
usedPanelContentDesignModel.filter()public void setFilter(boolean filter)
PanelContentDesignModel
setFilter in interface PanelContentDesignModelfilter - true if strings should be HTML encoded;
false otherwisePanelContentDesignModel.setFilter(boolean)public java.lang.String getLocaleName()
PanelContentDesignModel
getLocaleName in interface PanelContentDesignModelPanelContentDesignModel.getLocaleName()public void setLocaleName(java.lang.String locale)
PanelContentDesignModel
setLocaleName in interface PanelContentDesignModellocale - Locale Identifier or true|falsePanelContentDesignModel.setLocaleName(java.lang.String)public boolean show(Principal principal)
AccessControlled
show in interface AccessControlledprincipal - the users principal object
true if the permission existsAccessControlled.show(Principal)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||