|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.presenter.Presenter<M>
M
- the model of this presenter.public abstract class Presenter<M>
Abstract base class for presenter beans.
All abstract presenters have built-in property change support for bound properties.
Field Summary | |
---|---|
private PropertyChangeSupport |
changeSupport
Beans property change support. |
private M |
model
The model this presenter is bound to. |
private String[] |
titleParameters
An array of title parameters for suitable display in a view title. |
Constructor Summary | |
---|---|
protected |
Presenter(M model)
Creates an abstract presenter for the specified domain object. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Registers the specified property change listener. |
abstract void |
dispose()
Disposes this presenter. |
protected void |
firePropertyChange(String property,
Object oldValue,
Object newValue)
Support for reporting bound property changes for Object properties. |
protected M |
getModel()
Returns the model of this presenter. |
String[] |
getTitleParameters()
Returns an array of title parameters for suitable display in a view title. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the specified property change listener. |
void |
setTitleParameters(String... titleParameters)
Sets the array of title parameters which are used in view titles. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final PropertyChangeSupport changeSupport
private final M model
private String[] titleParameters
Constructor Detail |
---|
protected Presenter(M model)
model
- the domain object this presenter represents, must not be null
.Method Detail |
---|
protected final M getModel()
public String[] getTitleParameters()
null
.public void setTitleParameters(String... titleParameters)
titleParameters
- the new array to set.public abstract void dispose()
The presenter has to remove all listeners registered.
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to register.public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to remove.protected void firePropertyChange(String property, Object oldValue, Object newValue)
Use this method to inform registered property change listeners of a change in a bound property.
property
- the property whose value has changed.oldValue
- the previous value of the property.newValue
- the new value of the property.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG