public class ViewContext extends Object implements Comparable<ViewContext>
Modifier and Type | Field and Description |
---|---|
static String |
ID_ATR |
static String |
ID_TYPE_ATR |
Constructor and Description |
---|
ViewContext() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ViewContext o) |
String |
getAttribute(String key) |
Map<String,String> |
getAttributes() |
String |
getId() |
IdAttributes.IdType |
getIdType() |
PermissionType |
getPermissionType() |
String |
getState() |
void |
setAttribute(String key,
String value)
Add an additional attribute to the view context, this will appear in the address bar like id
and type does
|
void |
setId(String id)
Set the id for this view context, this will appear as part of the address bar when used in
a controller, the controller can use this id to determine what to show (determine the context)
|
void |
setIdType(IdAttributes.IdType idType)
Set the type of id for this view context, this will appear as part of the address bar when used in
a controller
|
void |
setIdType(String idTypeString) |
void |
setPermissionType(PermissionType permissionType)
Sets the type of permission needed to be at the the current view, this is interpreted by the controller
if set which checks with the server to see if the user has this kind of permission.
|
void |
setState(String state) |
public static final String ID_ATR
public static final String ID_TYPE_ATR
public ViewContext()
public void setId(String id)
public IdAttributes.IdType getIdType()
public void setIdType(IdAttributes.IdType idType)
public PermissionType getPermissionType()
public void setPermissionType(PermissionType permissionType)
public int compareTo(ViewContext o)
compareTo
in interface Comparable<ViewContext>
public void setAttribute(String key, String value)
public String getAttribute(String key)
public Map<String,String> getAttributes()
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.