com.ochafik.beans
Class BeansController<M>
java.lang.Object
com.ochafik.beans.BeansController<M>
public class BeansController<M>
- extends Object
Method Summary |
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
|
void |
attachViewComponent(JComponent jc,
String propertyName)
|
JComponent |
createScrollableViewComponent(String propertyName,
String caption,
String title,
String tooltip,
boolean largeComponent)
|
JComponent |
createViewComponent(String propertyName,
String caption,
boolean largeComponent)
|
void |
fireViewChange(Component eventSource,
String propertyName,
Object newValue)
|
M |
getModel()
|
PropertyChangeSupport |
getPropertyChangeSupport()
|
void |
modelUpdated()
|
void |
setModel(M model)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
booleanTrue
public static final boolean booleanTrue
- See Also:
- Constant Field Values
BeansController
public BeansController(Class<M> modelClass)
getPropertyChangeSupport
public PropertyChangeSupport getPropertyChangeSupport()
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
createScrollableViewComponent
public JComponent createScrollableViewComponent(String propertyName,
String caption,
String title,
String tooltip,
boolean largeComponent)
createViewComponent
public JComponent createViewComponent(String propertyName,
String caption,
boolean largeComponent)
attachViewComponent
public void attachViewComponent(JComponent jc,
String propertyName)
throws NoSuchMethodException
- Throws:
NoSuchMethodException
getModel
public M getModel()
setModel
public void setModel(M model)
fireViewChange
public void fireViewChange(Component eventSource,
String propertyName,
Object newValue)
modelUpdated
public void modelUpdated()
Copyright © 2009. All Rights Reserved.