public abstract class ViewImpl extends Object implements View
| Constructor and Description |
|---|
ViewImpl()
Instantiates a new ViewImpl.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
access(String attributeName)
Returns the value of the component by attribute name.
|
void |
actionPerformed(ActionEvent e) |
void |
addActionListener(ActionListener listener)
Adds the action listener.
|
void |
addAdapter(ComponentAdapter adapter)
Adds the adapter.
|
void |
addAdapter(ComponentAdapter adapter,
long behavior)
Adds the adapter.
|
String |
addComponent(Object component)
Adds the component to the view
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds the property change listener.
|
void |
clearComponents()
Removes all components from the view.
|
void |
clearControllerAdapters()
Removes all controller adapters rom the view.
|
ComponentAdapter |
getComponent(String name)
Gets the ComponentAdapter by name.
|
Map<String,ComponentAdapter> |
getComponents()
Gets the map where name is a name of the attribute and value is a ComponentAdapter.
|
Controller |
getController()
Gets the controller.
|
List<ControllerAdapter> |
getControllerAdapters()
Gets the list of the registered controller adapters.
|
void |
populate(String attributeName,
Object newValue)
Sets the value of the component by attribute name.
|
void |
propertyChange(PropertyChangeEvent event) |
void |
registerControllerAdapter(ControllerAdapter controllerAdapter)
Registers controller adapter.
|
void |
removeActionListener(ActionListener listener)
Removes the action listener.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the property change listener.
|
void |
setController(Controller controller)
Sets the controller for the view
|
void |
unRegisterControllerAdapter(ControllerAdapter controllerAdapter)
Unregisters controller adapter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddComponent, removeComponentpublic Object access(String attributeName)
Viewpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ViewactionPerformed in interface ActionListenerpublic void addActionListener(ActionListener listener)
ViewaddActionListener in interface Viewlistener - the listenerpublic void addAdapter(ComponentAdapter adapter)
adapter - the adapterpublic void addAdapter(ComponentAdapter adapter, long behavior)
adapter - the adapterbehavior - the behaviorpublic String addComponent(Object component)
ViewaddComponent in interface Viewcomponent - the componentpublic void addPropertyChangeListener(PropertyChangeListener listener)
ViewaddPropertyChangeListener in interface Viewlistener - the listenerpublic void clearComponents()
ViewclearComponents in interface Viewpublic void clearControllerAdapters()
ViewclearControllerAdapters in interface Viewpublic ComponentAdapter getComponent(String name)
ViewgetComponent in interface Viewname - the namepublic Map<String,ComponentAdapter> getComponents()
ViewgetComponents in interface Viewpublic Controller getController()
ViewgetController in interface Viewpublic List<ControllerAdapter> getControllerAdapters()
ViewgetControllerAdapters in interface Viewpublic void populate(String attributeName,
Object newValue)
Viewpublic void propertyChange(PropertyChangeEvent event)
propertyChange in interface ViewpropertyChange in interface PropertyChangeListenerpublic void registerControllerAdapter(ControllerAdapter controllerAdapter)
ViewregisterControllerAdapter in interface ViewcontrollerAdapter - the controller adapterpublic void removeActionListener(ActionListener listener)
ViewremoveActionListener in interface Viewlistener - the listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
ViewremovePropertyChangeListener in interface Viewlistener - the listenerpublic void setController(Controller controller)
ViewsetController in interface Viewcontroller - the new controllerpublic void unRegisterControllerAdapter(ControllerAdapter controllerAdapter)
ViewunRegisterControllerAdapter in interface ViewcontrollerAdapter - the controller adapterCopyright © 2010-2020 Toolsverse. All Rights Reserved.