|
|||||||||||
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.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 PanelContentDesignModel
newItem
- PanelItemDesignModelPanelContentDesignModel.addItem(PanelItemDesignModel)
public void removeItem(PanelItemDesignModel item)
PanelContentDesignModel
removeItem
in interface PanelContentDesignModel
item
- PanelItemDesignModelPanelContentDesignModel.removeItem(PanelItemDesignModel)
public PanelItemDesignModel[] getItems()
PanelContentDesignModel
getItems
in interface PanelContentDesignModel
PanelContentDesignModel.getItems()
public int size()
PanelContentDesignModel
size
in interface PanelContentDesignModel
PanelContentDesignModel.size()
public java.lang.String getMore()
PanelContentDesignModel
getMore
in interface PanelContentDesignModel
PanelContentDesignModel.getMore()
public java.lang.String getTitle()
PanelContentDesignModel
getTitle
in interface PanelContentDesignModel
PanelContentDesignModel.getTitle()
public void setImage(ImageModel image)
PanelContentDesignModel
setImage
in interface PanelContentDesignModel
image
- ImageModelPanelContentDesignModel.setImage(ImageModel image)
public void setMore(java.lang.String newMore)
PanelContentDesignModel
setMore
in interface PanelContentDesignModel
newMore
- 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 PanelContentDesignModel
title
- The titlePanelContentDesignModel.setTitle(String title)
public ImageModel getImage()
PanelContentDesignModel
getImage
in interface PanelContentDesignModel
PanelContentDesignModel.getImage()
public void setAction(java.lang.String action)
PanelContentDesignModel
setAction
in interface PanelContentDesignModel
action
- The action to processPanelContentDesignModel.setAction(String)
public java.lang.String getAction()
PanelContentDesignModel
getAction
in interface PanelContentDesignModel
PanelContentDesignModel.getAction()
public Permission getPermission()
AccessControlled
null
no access rights is required.
getPermission
in interface AccessControlled
AccessControlled.getPermission()
public void setPermission(Permission permission)
PanelContentDesignModel
setPermission
in interface PanelContentDesignModel
permission
- PermissionPanelContentDesignModel.setPermission(com.cc.framework.security.Permission)
public void setTooltip(java.lang.String tooltip)
PanelContentDesignModel
setTooltip
in interface PanelContentDesignModel
tooltip
- TooltipPanelContentDesignModel.setTooltip(java.lang.String)
public java.lang.String getTooltip()
PanelContentDesignModel
getTooltip
in interface PanelContentDesignModel
PanelContentDesignModel.getTooltip()
public boolean filter()
PanelContentDesignModel
filter
in interface PanelContentDesignModel
true
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 PanelContentDesignModel
filter
- true
if strings should be HTML encoded;
false
otherwisePanelContentDesignModel.setFilter(boolean)
public java.lang.String getLocaleName()
PanelContentDesignModel
getLocaleName
in interface PanelContentDesignModel
PanelContentDesignModel.getLocaleName()
public void setLocaleName(java.lang.String locale)
PanelContentDesignModel
setLocaleName
in interface PanelContentDesignModel
locale
- Locale Identifier or true|false
PanelContentDesignModel.setLocaleName(java.lang.String)
public boolean show(Principal principal)
AccessControlled
show
in interface AccessControlled
principal
- 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 |