|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.console.ui.views.properties.ConsolePropertiedEditor
public class ConsolePropertiedEditor
Field Summary | |
---|---|
static boolean |
DEFAULT_READ_ONLY_PRIVILEGE
|
static short |
NSUCONFIGINDICATOR
|
static short |
STARTUPCONFIGINDICATOR
|
Fields inherited from interface com.metamatrix.common.object.PropertiedObjectEditor |
---|
NO_VALUE |
Constructor Summary | |
---|---|
ConsolePropertiedEditor(PropertiesManager mgr)
|
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener)
Method to add any kind of a ChangeListener. |
UserTransaction |
createReadTransaction()
Create a new instance of a UserTransaction that may be used to read information. |
UserTransaction |
createWriteTransaction()
Create a new instance of a UserTransaction that may be used to write and/or update information. |
UserTransaction |
createWriteTransaction(java.lang.Object p0)
Create a new instance of a UserTransaction that may be used to write and/or update information. |
protected void |
fireChangedEvent(javax.swing.event.ChangeEvent e)
Call stateChanged() for each listener. |
java.util.List |
getAllowedValues(PropertiedObject obj,
PropertyDefinition def)
Get the allowed values for the property on the specified object. |
java.util.HashMap |
getChangeHM()
|
javax.swing.event.EventListenerList |
getListeners()
|
java.util.List |
getNSUDefns(java.util.List propDefnsList)
|
java.util.Properties |
getNSUProperties()
|
PropertyAccessPolicy |
getPolicy()
|
java.util.Collection |
getPropDefn()
|
java.util.List |
getPropertyDefinitions(PropertiedObject obj)
Obtain the list of PropertyDefinitions that apply to the specified object's type. |
ConsolePropertyObjectId |
getPropertyObjectId(java.lang.String gName,
PropertyFilter pFilter)
|
java.lang.String |
getPropertyValue()
|
java.util.List |
getSUDefns(java.util.List propDefnsList)
|
java.lang.Object |
getValue(PropertiedObject obj,
PropertyDefinition def)
Obtain from the specified PropertiedObject the property value that corresponds to the specified PropertyDefinition. |
boolean |
isReadOnly(PropertiedObject obj)
Return whether this editor may be used to set property values on the specified PropertiedObject. |
boolean |
isReadOnly(PropertiedObject obj,
PropertyDefinition def)
|
boolean |
isValidValue(PropertiedObject obj,
PropertyDefinition def,
java.lang.Object value)
Return whether the specified value is considered valid. |
void |
refreshData()
|
void |
removeChangeListener(javax.swing.event.ChangeListener listener)
Method to remove a ChangeListener. |
void |
reset(PropertiedObject obj)
|
void |
setGroupDefn(java.lang.String groupName,
java.util.List groupPropDefns)
|
void |
setPolicy(PropertyAccessPolicy policy)
|
void |
setReadOnly(PropertiedObject obj,
boolean readOnly)
|
void |
setReadOnly(PropertiedObject obj,
PropertyDefinition def,
boolean readOnly)
|
void |
setValue(PropertiedObject obj,
PropertyDefinition def,
java.lang.Object value)
Set on the specified PropertiedObject the value defined by the specified PropertyDefinition. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short NSUCONFIGINDICATOR
public static final short STARTUPCONFIGINDICATOR
public static final boolean DEFAULT_READ_ONLY_PRIVILEGE
Constructor Detail |
---|
public ConsolePropertiedEditor(PropertiesManager mgr)
Method Detail |
---|
public ConsolePropertyObjectId getPropertyObjectId(java.lang.String gName, PropertyFilter pFilter)
public java.util.HashMap getChangeHM()
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
public java.util.Properties getNSUProperties()
public java.util.Collection getPropDefn()
public void setGroupDefn(java.lang.String groupName, java.util.List groupPropDefns)
public java.util.List getNSUDefns(java.util.List propDefnsList)
public java.util.List getSUDefns(java.util.List propDefnsList)
public void refreshData()
public java.util.List getPropertyDefinitions(PropertiedObject obj)
PropertiedObjectEditor
getPropertyDefinitions
in interface PropertiedObjectEditor
obj
- the propertied object for which the PropertyDefinitions are
to be obtained; may not be null
public boolean isReadOnly(PropertiedObject obj) throws java.lang.UnsupportedOperationException
isReadOnly
in interface PropertiedObjectEditor
isReadOnly
in interface PropertyAccessPolicy
obj
- the propertied object; may not be null
java.lang.AssertionError
- if obj
is null
java.lang.UnsupportedOperationException
public java.lang.Object getValue(PropertiedObject obj, PropertyDefinition def)
getValue
in interface PropertiedObjectEditor
obj
- the propertied object whose property value is to be obtained;
may not be nulldef
- the reference to the PropertyDefinition describing the
property whose value is to be returned; may not be null
java.lang.AssertionError
- if either of obj
or def
is nullpublic boolean isValidValue(PropertiedObject obj, PropertyDefinition def, java.lang.Object value)
isValidValue
in interface PropertiedObjectEditor
obj
- the propertied object whose property value is to be validated;
may not be nulldef
- the reference to the PropertyDefinition describing the
property whose value is to be validated; may not be nullvalue
- the proposed value for the property, which may be a collection if
the property is multi-valued, or may be null if the multiplicity
includes "0"
java.lang.AssertionError
- if either of obj
or def
is nullpublic java.lang.String getPropertyValue()
public void setValue(PropertiedObject obj, PropertyDefinition def, java.lang.Object value)
setValue
in interface PropertiedObjectEditor
obj
- the propertied object whose property value is to be set;
may not be nulldef
- the reference to the PropertyDefinition describing the
property whose value is to be changed; may not be nullvalue
- the new value for the property; the cardinality and type
must conform PropertyDefinition
java.lang.IllegalArgumentException
- if the value does not correspond
to the PropertyDefinition requirements.
java.lang.AssertionError
- if either of obj
or def
is nullpublic java.util.List getAllowedValues(PropertiedObject obj, PropertyDefinition def)
PropertiedObjectEditor
getAllowedValues
in interface PropertiedObjectEditor
obj
- the propertied object whose property value is to be obtained;
may not be nulldef
- the reference to the PropertyDefinition describing the
property whose value is to be returned; may not be null
#hasAllowedValues
public boolean isReadOnly(PropertiedObject obj, PropertyDefinition def) throws java.lang.UnsupportedOperationException
isReadOnly
in interface PropertyAccessPolicy
java.lang.UnsupportedOperationException
public void setReadOnly(PropertiedObject obj, PropertyDefinition def, boolean readOnly)
setReadOnly
in interface PropertyAccessPolicy
public void setReadOnly(PropertiedObject obj, boolean readOnly)
setReadOnly
in interface PropertyAccessPolicy
public void reset(PropertiedObject obj)
reset
in interface PropertyAccessPolicy
public UserTransaction createReadTransaction()
UserTransactionFactory
The returned transaction object will not be bound to an underlying
system transaction until begin()
is called on the returned
object.
createReadTransaction
in interface UserTransactionFactory
public UserTransaction createWriteTransaction()
UserTransactionFactory
The returned transaction object will not be bound to an underlying
system transaction until begin()
is called on the returned
object.
createWriteTransaction
in interface UserTransactionFactory
public UserTransaction createWriteTransaction(java.lang.Object p0)
UserTransactionFactory
The returned transaction object will not be bound to an underlying
system transaction until begin()
is called on the returned
object.
createWriteTransaction
in interface UserTransactionFactory
p0
- the object that is considered to be the source of the transaction;
may be null
public PropertyAccessPolicy getPolicy() throws java.lang.UnsupportedOperationException
getPolicy
in interface PropertiedObjectEditor
java.lang.UnsupportedOperationException
public void setPolicy(PropertyAccessPolicy policy)
setPolicy
in interface PropertiedObjectEditor
public void addChangeListener(javax.swing.event.ChangeListener listener)
listener
- Listener to addpublic void removeChangeListener(javax.swing.event.ChangeListener listener)
listener
- Listener to removepublic javax.swing.event.EventListenerList getListeners()
protected void fireChangedEvent(javax.swing.event.ChangeEvent e)
e
- event to be fired
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |