public class JcrPropertyModel<T> extends ItemModelWrapper<javax.jcr.Property> implements org.apache.wicket.markup.repeater.data.IDataProvider<T>, IObservable
Constructor and Description |
---|
JcrPropertyModel(JcrItemModel<javax.jcr.Property> model) |
JcrPropertyModel(javax.jcr.Property prop) |
JcrPropertyModel(String path) |
Modifier and Type | Method and Description |
---|---|
void |
detach() |
boolean |
equals(Object object)
Equivalence of observables; observation will only be started on one instance.
|
protected javax.jcr.nodetype.PropertyDefinition |
findDefinition(javax.jcr.nodetype.NodeType nodeType,
String name,
int type,
boolean multiValued) |
javax.jcr.nodetype.PropertyDefinition |
getDefinition(int type,
boolean multiValued) |
javax.jcr.Property |
getProperty() |
int |
hashCode() |
Iterator |
iterator(long first,
long count) |
org.apache.wicket.model.IModel<T> |
model(Object object) |
void |
setObservationContext(IObservationContext context)
Before observation is started on the observable, an observation context is injected by
the observer registry.
|
long |
size() |
void |
startObservation()
When the first
IObserver of this observable is registered with the observer
registry, observation is started. |
void |
stopObservation()
When the last
IObserver unregisters, observation is stopped. |
String |
toString() |
getChainedModel, getItemModel, getObject, setChainedModel, setObject
public JcrPropertyModel(JcrItemModel<javax.jcr.Property> model)
public JcrPropertyModel(javax.jcr.Property prop)
public JcrPropertyModel(String path)
public javax.jcr.Property getProperty()
public javax.jcr.nodetype.PropertyDefinition getDefinition(int type, boolean multiValued)
protected javax.jcr.nodetype.PropertyDefinition findDefinition(javax.jcr.nodetype.NodeType nodeType, String name, int type, boolean multiValued)
public Iterator iterator(long first, long count)
iterator
in interface org.apache.wicket.markup.repeater.data.IDataProvider<T>
public org.apache.wicket.model.IModel<T> model(Object object)
model
in interface org.apache.wicket.markup.repeater.data.IDataProvider<T>
public long size()
size
in interface org.apache.wicket.markup.repeater.data.IDataProvider<T>
public void setObservationContext(IObservationContext context)
IObservable
setObservationContext
in interface IObservable
public void startObservation()
IObservable
IObserver
of this observable is registered with the observer
registry, observation is started. Implementations must notify observers until observation
is stopped.
An implementation should register listeners with external data sources, when appropriate. It is possible for an observable to register as an observer for another observable.
startObservation
in interface IObservable
public void stopObservation()
IObservable
IObserver
unregisters, observation is stopped. Any listeners
or observers registered by the observable must be unregistered by the implementation.stopObservation
in interface IObservable
public void detach()
detach
in interface org.apache.wicket.model.IDetachable
detach
in class ItemModelWrapper<javax.jcr.Property>
public boolean equals(Object object)
IObservable
equals
in interface IObservable
equals
in class Object
public int hashCode()
hashCode
in interface IObservable
hashCode
in class Object
IObservable.equals(Object)
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.