i3mclient.config
Class ConfigGUI

java.lang.Object
  |
  +--i3mclient.config.ConfigGUI
All Implemented Interfaces:
ConfigErrorListener, DisposeListener, EventListener, SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class ConfigGUI
extends Object
implements ConfigErrorListener, SelectionListener, DisposeListener

The config window.

Author:
Dirk Plate
See Also:
Config

Constructor Summary
ConfigGUI(Shell parentWindow, Config configSet)
          Constructor.
 
Method Summary
 void addShellListener(ShellListener listener)
          Add ShellListener to window.
 void focus()
          Put the focus on config window.
 void inputCorrect(Widget panel, Widget item)
          Called when a input is correct.
 void inputError(Widget panel, Widget item, String text)
          Called when user writes some wrong config inputs.
 void widgetDefaultSelected(SelectionEvent arg0)
           
 void widgetDisposed(DisposeEvent arg0)
           
 void widgetSelected(SelectionEvent event)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigGUI

public ConfigGUI(Shell parentWindow,
                 Config configSet)
Constructor.

Parameters:
parentWindow - The parent window of this config shell
configSet - The config which will be shown and edited in this config shell
Method Detail

focus

public void focus()
Put the focus on config window.


addShellListener

public void addShellListener(ShellListener listener)
Add ShellListener to window.

Parameters:
listener - The listener which will be informed about shell changes

inputError

public void inputError(Widget panel,
                       Widget item,
                       String text)
Description copied from interface: ConfigErrorListener
Called when user writes some wrong config inputs.

Specified by:
inputError in interface ConfigErrorListener
Parameters:
panel - Panel on which occurs the error
item - Item on which occurs the error
text - The error text

inputCorrect

public void inputCorrect(Widget panel,
                         Widget item)
Description copied from interface: ConfigErrorListener
Called when a input is correct.

Specified by:
inputCorrect in interface ConfigErrorListener
Parameters:
panel - The panel on which no error occurs
item - The item on which no error occurs

widgetSelected

public void widgetSelected(SelectionEvent event)
Specified by:
widgetSelected in interface SelectionListener

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent arg0)
Specified by:
widgetDefaultSelected in interface SelectionListener

widgetDisposed

public void widgetDisposed(DisposeEvent arg0)
Specified by:
widgetDisposed in interface DisposeListener