org.eclipse.ercp.update.views
Class AbsScreen

java.lang.Object
  extended by org.eclipse.ercp.update.views.AbsScreen
All Implemented Interfaces:
java.util.EventListener, ControlListener, SelectionListener, org.eclipse.swt.internal.SWTEventListener
Direct Known Subclasses:
AddBookmarkScreen, AddLocalScreen, AddRemoteScreen, BookmarksScreen, EditBookmarkScreen, InstallingScreen, LicenseScreen, ManageScreen, PropertiesScreen, RootScreen, SelectFeaturesScreen, UninstallScreen, UpdatingScreen

public abstract class AbsScreen
extends java.lang.Object
implements SelectionListener, ControlListener


Field Summary
protected  int BACK
           
protected  int CANCEL
           
protected  int FINISHED
           
protected  int NEXT
           
protected  int NONE
           
 
Constructor Summary
AbsScreen()
           
AbsScreen(NormalView view)
           
 
Method Summary
protected abstract  void action()
           
 void controlMoved(ControlEvent e)
          Sent when the location (x, y) of a control changes relative to its parent (or relative to the display, for Shells).
 void controlResized(ControlEvent e)
          Sent when the size (width, height) of a control changes.
protected abstract  void createScreen()
           
protected  void fillSpace()
           
protected  void init(java.lang.String title)
           
protected  Composite init(java.lang.String title, boolean scrollable)
           
protected abstract  void refresh()
           
protected  void separator()
           
protected  void setButtons(int back, int cancel, int next)
           
 void setVisible(boolean bVis)
           
 void show(boolean refreshIt)
           
 void widgetDefaultSelected(SelectionEvent arg0)
          Sent when default selection occurs in the control.
abstract  void widgetSelected(SelectionEvent se)
          Sent when selection occurs in the control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

protected final int NONE
See Also:
Constant Field Values

BACK

protected final int BACK
See Also:
Constant Field Values

CANCEL

protected final int CANCEL
See Also:
Constant Field Values

NEXT

protected final int NEXT
See Also:
Constant Field Values

FINISHED

protected final int FINISHED
See Also:
Constant Field Values
Constructor Detail

AbsScreen

public AbsScreen()

AbsScreen

public AbsScreen(NormalView view)
Method Detail

show

public void show(boolean refreshIt)

setVisible

public void setVisible(boolean bVis)

createScreen

protected abstract void createScreen()

refresh

protected abstract void refresh()

action

protected abstract void action()

init

protected void init(java.lang.String title)

init

protected Composite init(java.lang.String title,
                         boolean scrollable)

fillSpace

protected void fillSpace()

separator

protected void separator()

setButtons

protected void setButtons(int back,
                          int cancel,
                          int next)

widgetSelected

public abstract void widgetSelected(SelectionEvent se)
Description copied from interface: SelectionListener
Sent when selection occurs in the control.

For example, on some platforms selection occurs in a List when the user selects an item or items.

Specified by:
widgetSelected in interface SelectionListener
Parameters:
se - an event containing information about the selection

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent arg0)
Description copied from interface: SelectionListener
Sent when default selection occurs in the control.

For example, on some platforms default selection occurs in a List when the user double-clicks an item or types return in a Text.

Specified by:
widgetDefaultSelected in interface SelectionListener
Parameters:
arg0 - an event containing information about the default selection

controlMoved

public void controlMoved(ControlEvent e)
Description copied from interface: ControlListener
Sent when the location (x, y) of a control changes relative to its parent (or relative to the display, for Shells).

Specified by:
controlMoved in interface ControlListener
Parameters:
e - an event containing information about the move

controlResized

public void controlResized(ControlEvent e)
Description copied from interface: ControlListener
Sent when the size (width, height) of a control changes.

Specified by:
controlResized in interface ControlListener
Parameters:
e - an event containing information about the resize