com.ochafik.beans
Class BeansController<M>

java.lang.Object
  extended by com.ochafik.beans.BeansController<M>

public class BeansController<M>
extends Object


Field Summary
static boolean booleanTrue
           
 
Constructor Summary
BeansController(Class<M> modelClass)
           
 
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
 

Field Detail

booleanTrue

public static final boolean booleanTrue
See Also:
Constant Field Values
Constructor Detail

BeansController

public BeansController(Class<M> modelClass)
Method Detail

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.