|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.portlet.state.AbstractPropertyContext
public class AbstractPropertyContext
| Field Summary | |
|---|---|
static int |
NO_CHANGE
No change have been done or attempted. |
static int |
UPDATE_FAILED
Attempts to update the state that failed has been performed. |
static int |
UPDATE_SUCCESSFUL
The state has been succesfully updated. |
| Fields inherited from interface org.jboss.portal.portlet.state.PropertyContext |
|---|
PREFERENCES_ATTRIBUTE |
| Constructor Summary | |
|---|---|
AbstractPropertyContext(AccessMode access,
PropertyMap prefs,
boolean render)
Create a new object. |
|
| Method Summary | |
|---|---|
java.util.Set |
getKeys()
Return the key set. |
PropertyMap |
getPrefs()
|
int |
getStatus()
|
Value |
getValue(java.lang.String key)
Return for a specified key its value or null if the value does not exist. |
boolean |
isReadOnly()
Return true if the preferences are globally read only. |
void |
update(PropertyChange[] changes)
Update the preferences. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_CHANGE
public static final int UPDATE_FAILED
public static final int UPDATE_SUCCESSFUL
| Constructor Detail |
|---|
public AbstractPropertyContext(AccessMode access,
PropertyMap prefs,
boolean render)
throws java.lang.IllegalArgumentException
prefs - the user prefs
java.lang.IllegalArgumentException - if the portletPrefs are null| Method Detail |
|---|
public void update(PropertyChange[] changes)
throws java.lang.IllegalStateException
PropertyContext
update in interface PropertyContextjava.lang.IllegalStateException - if the preferences is not writablepublic java.util.Set getKeys()
PropertyContext
getKeys in interface PropertyContext
public Value getValue(java.lang.String key)
throws java.lang.IllegalArgumentException
PropertyContext
getValue in interface PropertyContextkey - the lookup key
java.lang.IllegalArgumentException - if the key is nullpublic boolean isReadOnly()
PropertyContext
isReadOnly in interface PropertyContextpublic PropertyMap getPrefs()
public int getStatus()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||