|
|||||||||
Home >> All >> openfuture >> editxml >> [ applet overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
openfuture.editxml.applet
Class AbsController

java.lang.Objectopenfuture.editxml.applet.AbsController
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, java.awt.event.FocusListener, java.awt.event.ItemListener, javax.swing.event.ListSelectionListener
- Direct Known Subclasses:
- EditorController, RootController
- public abstract class AbsController
- extends java.lang.Object
- implements java.awt.event.ItemListener, java.awt.event.ActionListener, java.awt.event.FocusListener, javax.swing.event.ListSelectionListener
- extends java.lang.Object
Abstract controller, after ideas from Bug Base.
Created: Tue Feb 08 23:39:18 2000
- Version:
- $Revision: 1.2 $
Field Summary | |
private boolean |
ignoreEvents
|
private java.util.ResourceBundle |
resourceBundle
|
private AbsPanel |
view
|
Constructor Summary | |
AbsController(java.util.ResourceBundle resourceBundle)
Creates a new AbsController instance. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Actions, when a widget triggers an action |
void |
focusGained(java.awt.event.FocusEvent e)
Actions, when a widget gains the focus |
void |
focusLost(java.awt.event.FocusEvent e)
Actions, when a widget looses the focus |
boolean |
getIgnoreEvents()
Get the value of ignoreEvents. |
java.util.ResourceBundle |
getResourceBundle()
Get the value of resourceBundle. |
AbsPanel |
getView()
Get the value of view. |
(package private) abstract void |
handleEvents(java.util.EventObject event,
java.lang.Object source,
java.lang.String name)
Event handling method where all events are redirected do. |
void |
init()
Initialize the controller. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
Actions, when a widget item value has changed |
void |
setIgnoreEvents(boolean v)
Set the value of ignoreEvents. |
void |
setResourceBundle(java.util.ResourceBundle v)
Set the value of resourceBundle. |
void |
setView(AbsPanel v)
Set the value of view. |
void |
showError(java.awt.Component parentComponent,
java.lang.Exception e)
Shows up an error dialog with the message of the exception. |
void |
showError(java.lang.Exception e)
Shows up an error dialog with the message of the exception using getView() 55 as parent component. |
void |
showMessage(java.awt.Component parentComponent,
java.lang.String key)
Shows up an message dialog. |
void |
showMessage(java.lang.String key)
Shows up an message dialog using getView() 55 as
parent component. |
void |
valueChanged(javax.swing.event.ListSelectionEvent e)
Actions, when a widget value has changed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
view
private AbsPanel view
ignoreEvents
private boolean ignoreEvents
resourceBundle
private java.util.ResourceBundle resourceBundle
Constructor Detail |
AbsController
public AbsController(java.util.ResourceBundle resourceBundle)
- Creates a new
AbsController
instance.
Method Detail |
init
public void init()
- Initialize the controller. Events are not ignored.
focusGained
public void focusGained(java.awt.event.FocusEvent e)
- Actions, when a widget gains the focus
- Specified by:
focusGained
in interfacejava.awt.event.FocusListener
focusLost
public void focusLost(java.awt.event.FocusEvent e)
- Actions, when a widget looses the focus
- Specified by:
focusLost
in interfacejava.awt.event.FocusListener
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Actions, when a widget triggers an action
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
valueChanged
public void valueChanged(javax.swing.event.ListSelectionEvent e)
- Actions, when a widget value has changed
- Specified by:
valueChanged
in interfacejavax.swing.event.ListSelectionListener
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Actions, when a widget item value has changed
- Specified by:
itemStateChanged
in interfacejava.awt.event.ItemListener
getView
public AbsPanel getView()
- Get the value of view.
setView
public void setView(AbsPanel v)
- Set the value of view.
getIgnoreEvents
public boolean getIgnoreEvents()
- Get the value of ignoreEvents.
setIgnoreEvents
public void setIgnoreEvents(boolean v)
- Set the value of ignoreEvents.
handleEvents
abstract void handleEvents(java.util.EventObject event, java.lang.Object source, java.lang.String name)
- Event handling method where all events are redirected do.
showError
public void showError(java.lang.Exception e)
- Shows up an error dialog with the message of the exception using
getView()
55 as parent component.
showError
public void showError(java.awt.Component parentComponent, java.lang.Exception e)
- Shows up an error dialog with the message of the exception.
showMessage
public void showMessage(java.lang.String key)
- Shows up an message dialog using
getView()
55 as parent component.
showMessage
public void showMessage(java.awt.Component parentComponent, java.lang.String key)
- Shows up an message dialog.
getResourceBundle
public java.util.ResourceBundle getResourceBundle()
- Get the value of resourceBundle.
setResourceBundle
public void setResourceBundle(java.util.ResourceBundle v)
- Set the value of resourceBundle.
|
|||||||||
Home >> All >> openfuture >> editxml >> [ applet overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |