|
|||||||||||
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.CrumbModelImp
Designmodel for the crumbs of a CrumbsControl
Field Summary | |
private java.lang.String |
action
The action which should be processed if the crumb is activated. |
private java.lang.String |
crumbid
The unique id of the crumb |
private boolean |
disabled
This flag indicates if the crumb is disabled |
private java.lang.Boolean |
filter
Specifies if all String should be converted into there HTML representation |
private java.lang.String |
imageRef
Reference to an image in the ImageMap of the CrumbControl which should be displayed on the crumb in front of the label. |
private java.lang.String |
localeName
Locale Setting |
private Permission |
permission
The Permission for the crumb |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.String |
title
The title of the crumb |
private java.lang.String |
tooltip
A tooltip which is displayed if the user moves the mouse over the label/title. |
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
|
Constructor Summary | |
CrumbModelImp()
Constructor for CrumbDesignModelImp |
Method Summary | |
java.lang.Boolean |
filter()
Returns if the filter is activated (default=true). |
java.lang.String |
getAction()
Returns the action, which should be processed if the Crumb is selected. |
java.lang.String |
getCrumbId()
Returns the unique key for the Crumb |
java.lang.String |
getImageRef()
Returns the assignment Rule |
java.lang.String |
getLocaleName()
Gets the Local Setting for this element |
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 |
boolean |
isDisabled()
Checks if the crumb is disabled |
void |
setAction(java.lang.String string)
Sets the Action, which should be processed if the Crumb is selected. |
void |
setCrumbId(java.lang.String crumbid)
Sets the Id for the Crumb |
void |
setDisabled(boolean disabled)
Marks the crumb as disabled |
void |
setFilter(boolean filter)
Activates the HTML encoding (filter). |
void |
setImageRef(java.lang.String imageRef)
Assigns the Crumb an Image from an ImageMap |
void |
setLocaleName(java.lang.String locale)
Sets the Locale configuration for this element |
void |
setPermission(Permission permission)
Sets a list with permission for the object. |
void |
setTitle(java.lang.String title)
Sets the Title |
void |
setTooltip(java.lang.String tooltip)
Sets the tooltip text |
boolean |
show(Principal principal)
Checks if the Object has a required permission. |
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.ClientHandler |
getHandler, getHandlers, setHandler |
Field Detail |
private static final long serialVersionUID
private java.lang.String crumbid
private java.lang.String action
private java.lang.String title
private java.lang.String tooltip
private java.lang.String imageRef
private boolean disabled
private java.lang.Boolean filter
private java.lang.String localeName
private Permission permission
Constructor Detail |
public CrumbModelImp()
Method Detail |
public java.lang.String getTitle()
CrumbModel
getTitle
in interface CrumbModel
CrumbModel.getTitle()
public void setTitle(java.lang.String title)
CrumbModel
setTitle
in interface CrumbModel
title
- The TitleCrumbModel.setTitle(java.lang.String)
public void setTooltip(java.lang.String tooltip)
CrumbModel
setTooltip
in interface CrumbModel
tooltip
- The TooltipCrumbModel.setTooltip(java.lang.String)
public java.lang.String getTooltip()
CrumbModel
getTooltip
in interface CrumbModel
CrumbModel.getTooltip()
public java.lang.String getCrumbId()
CrumbModel
getCrumbId
in interface CrumbModel
CrumbModel.getCrumbId()
public void setCrumbId(java.lang.String crumbid)
CrumbModel
setCrumbId
in interface CrumbModel
crumbid
- Unique IdCrumbModel.setCrumbId(java.lang.String)
public java.lang.String getImageRef()
CrumbModel
getImageRef
in interface CrumbModel
CrumbModel.getImageRef()
public void setImageRef(java.lang.String imageRef)
CrumbModel
setImageRef
in interface CrumbModel
imageRef
- Rule of the ImageMap to matchCrumbModel.setImageRef(java.lang.String)
public boolean isDisabled()
CrumbModel
isDisabled
in interface CrumbModel
true
if the crumb is disabledCrumbModel.isDisabled()
public void setDisabled(boolean disabled)
CrumbModel
setDisabled
in interface CrumbModel
disabled
- true
to disable the crumbCrumbModel.setDisabled(boolean)
public java.lang.String getAction()
CrumbModel
getAction
in interface CrumbModel
CrumbModel.getAction()
public void setAction(java.lang.String string)
CrumbModel
setAction
in interface CrumbModel
string
- ActionCrumbModel.setAction(java.lang.String)
public java.lang.Boolean filter()
CrumbModel
filter
in interface CrumbModel
true
if string will be HTML encoded;
false
otherwise. If a null
is
returned than the filter of the enclosing CrumbControl should be
usedCrumbModel.filter()
public void setFilter(boolean filter)
CrumbModel
setFilter
in interface CrumbModel
filter
- true
if strings should be HTML encoded;
false
otherwiseCrumbModel.setFilter(boolean)
public java.lang.String getLocaleName()
CrumbModel
getLocaleName
in interface CrumbModel
CrumbModel.getLocaleName()
public void setLocaleName(java.lang.String locale)
CrumbModel
setLocaleName
in interface CrumbModel
locale
- Locale Identifier or true|false
CrumbModel.setLocaleName(java.lang.String)
public Permission getPermission()
AccessControlled
null
no access rights is required.
getPermission
in interface AccessControlled
AccessControlled.getPermission()
public void setPermission(Permission permission)
CrumbModel
setPermission
in interface CrumbModel
permission
- PermissionCrumbModel.setPermission(com.cc.framework.security.Permission)
public boolean show(Principal principal)
AccessControlled
show
in interface AccessControlled
principal
- the users principal object
true
if the permission existsAccessControlled.show(com.cc.framework.security.Principal)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |