public class IltFacesPropertyAccessor extends Object
IltFacesPropertyAccessor represents the abstraction in charge
of providing access to TGO object properties. It is used to make object
details available on remote clients.
See the following section in the Programmers Documentation for more details:
Building Web Applications > The Network View Faces Component > Configuring a Network View Faces Component > Interacting with the Network View Component.
| Constructor and Description |
|---|
IltFacesPropertyAccessor()
Creates a new
IltFacesPropertyAccessor instance. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acceptGetProperty(IlpGraphicView view,
IlpRepresentationObject object,
String propertyName)
This default implementation calls
acceptProperty(IlpGraphicView, IlpRepresentationObject, String). |
protected boolean |
acceptProperty(IlpGraphicView view,
IlpRepresentationObject object,
String propertyName)
Returns whether or not a given property can be accessed.
|
Map |
getProperties(IlpGraphicView view,
IlpRepresentationObject object)
Returns the properties of the given object.
|
protected List |
getPropertyNames(IlpGraphicView view,
IlpRepresentationObject object)
Returns the properties that will be exposed for the given
IlpRepresentationObject and
IlpGraphicView instances. |
protected Object |
getStringFromValue(IlpGraphicView view,
IlpRepresentationObject object,
String propertyName,
Object propertyValue)
Converts the provided in-memory property representation to a client-side
String representation of a property value. |
public IltFacesPropertyAccessor()
IltFacesPropertyAccessor instance.public Map getProperties(IlpGraphicView view, IlpRepresentationObject object)
By default, the property names provided are treated as the attribute
names of the IlpObject instance taken from the provided
IlpRepresentationObject object.
view - The IlpGraphicView representing the object.object - The IlpRepresentationObject of interest.Map containing property names as keys. The values
associated with the keys are in the form of String objects.protected List getPropertyNames(IlpGraphicView view, IlpRepresentationObject object)
IlpRepresentationObject and
IlpGraphicView instances.
You can redefine this method to filter out properties.
By default the property names returned are the names of the
attributes taken from the IlpObject instances in
object.
view - The IlpGraphicView representing the object.object - The IlpRepresentationObject of interest.protected boolean acceptProperty(IlpGraphicView view, IlpRepresentationObject object, String propertyName)
By default all properties are accepted.
This method should be overridden to minimize the number of properties accepted. All accepted properties are ultimately sent to remote clients.
view - The IlpGraphicView representing the object.object - The IlpRepresentationObject of interest.propertyName - The name of the property.true is returned.protected boolean acceptGetProperty(IlpGraphicView view, IlpRepresentationObject object, String propertyName)
acceptProperty(IlpGraphicView, IlpRepresentationObject, String).
This can be redefined to filter the accepted properties for read operations.
view - The IlpGraphicView instance representing the
object.object - The IlpRepresentationObject of interest.propertyName - The name of the property.true is returned.protected Object getStringFromValue(IlpGraphicView view, IlpRepresentationObject object, String propertyName, Object propertyValue)
String representation of a property value.
This default implementation uses the IlpTypeConverter
associated with the IlpGraphicView's IlpContext.
By default, an empty String is returned if the value of the
property is IltObject.VALUE_NOT_SET.
view - The IlpGraphicView instance representing the
object.object - The IlpRepresentationObject instance of
interest.propertyName - The name of the property.propertyValue - The object value for the property.String representation suitable for the client-side.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.