public class AbstractPropertyContext extends Object implements PropertyContext
| Modifier and Type | Field and Description |
|---|---|
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.
|
PREFERENCES_ATTRIBUTE| Constructor and Description |
|---|
AbstractPropertyContext(AccessMode access,
PropertyMap prefs,
boolean render)
Create a new object.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getKeys() |
PropertyMap |
getPrefs() |
int |
getStatus() |
List<String> |
getValue(String key) |
boolean |
isReadOnly() |
void |
update(PropertyChange[] changes) |
public static final int NO_CHANGE
public static final int UPDATE_FAILED
public static final int UPDATE_SUCCESSFUL
public AbstractPropertyContext(AccessMode access, PropertyMap prefs, boolean render) throws IllegalArgumentException
prefs - the user prefsIllegalArgumentException - if the portletPrefs are nullpublic void update(PropertyChange[] changes) throws IllegalStateException
update in interface PropertyContextIllegalStateExceptionpublic Set<String> getKeys()
getKeys in interface PropertyContextpublic List<String> getValue(String key) throws IllegalArgumentException
getValue in interface PropertyContextIllegalArgumentExceptionpublic boolean isReadOnly()
isReadOnly in interface PropertyContextpublic PropertyMap getPrefs()
public int getStatus()
Copyright © 2003-2021 GateIn. All Rights Reserved.