com.application.areca.launcher.gui.common
Class AbstractWindow

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.window.ApplicationWindow
          extended by com.application.areca.launcher.gui.common.AbstractWindow
All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableContext, org.eclipse.jface.window.IShellProvider
Direct Known Subclasses:
AboutWindow, ArchiveWindow, BackupShortcutWizardWindow, BackupStrategyWizardWindow, BackupWindow, CheckWindow, CopyWorkspaceWindow, DeleteWindow, FilterEditionWindow, FTPEditionWindow, GroupEditionWindow, ImportGroupWindow, JavaVendorWindow, LongMessageWindow, MainWindow, MergeWindow, MissingEncryptionDataWindow, MissingFTPDataWindow, NewVersionWindow, PluginConfigurationWindow, PreferencesWindow, ProcessorEditionWindow, RecoverWindow, ReportWindow, SimulationWindow, SourceEditionWindow, TargetEditionWindow

public abstract class AbstractWindow
extends org.eclipse.jface.window.ApplicationWindow


Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
protected  Application application
           
protected  boolean hasBeenUpdated
           
protected  boolean initialized
           
protected  ResourceManager RM
           
protected  org.eclipse.swt.graphics.Point size
           
 
Fields inherited from class org.eclipse.jface.window.ApplicationWindow
seperator1
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
AbstractWindow()
           
 
Method Summary
protected  void cancelChanges()
           
protected abstract  boolean checkBusinessRules()
           
 boolean close()
           
static int computeHeight(int linuxH)
           
static org.eclipse.swt.graphics.Point computeSize(int linuxW, int linuxH)
           
static int computeWidth(int linuxW)
           
static java.lang.String configureForTable(java.lang.String text)
           
protected  void configureShell(org.eclipse.swt.widgets.Shell shell)
           
protected  void constrainShellSize()
           
protected  java.lang.String getFullWindowTitle()
           
 org.eclipse.swt.graphics.Point getSize()
           
static boolean getTableLinesVisible()
           
abstract  java.lang.String getTitle()
           
 void monitorControl(org.eclipse.swt.widgets.Button ctrl)
           
 void monitorControl(org.eclipse.swt.widgets.Combo ctrl)
           
protected  void monitorControl(int swtEventType, org.eclipse.swt.widgets.Control ctrl)
           
 void monitorControl(org.eclipse.swt.widgets.Text ctrl)
           
protected  void registerUpdate()
           
 void resetErrorState(org.eclipse.swt.widgets.Control ctrl)
           
protected abstract  void saveChanges()
           
 void setInError(org.eclipse.swt.widgets.Control ctrl)
           
 void setModal(AbstractWindow window)
           
 void setSize(org.eclipse.swt.graphics.Point size)
           
 void shellActivated(org.eclipse.swt.events.ShellEvent e)
           
 void shellClosed(org.eclipse.swt.events.ShellEvent e)
           
 void shellDeactivated(org.eclipse.swt.events.ShellEvent e)
           
 void shellDeiconified(org.eclipse.swt.events.ShellEvent e)
           
 void shellIconified(org.eclipse.swt.events.ShellEvent e)
           
protected  int showCancelMessage()
           
protected abstract  void updateState(boolean rulesSatisfied)
           
 
Methods inherited from class org.eclipse.jface.window.ApplicationWindow
addCoolBar, addMenuBar, addStatusLine, addToolBar, canHandleShellCloseEvent, coolBarChildrenExist, createCoolBarControl, createCoolBarManager, createCoolBarManager2, createMenuManager, createStatusLine, createStatusLineManager, createToolBarControl, createToolBarManager, createToolBarManager2, createTrimWidgets, getCoolBarControl, getCoolBarManager, getCoolBarManager2, getFont, getLayout, getMenuBarManager, getSeperator1, getStatusLineManager, getSymbolicFontName, getToolBarControl, getToolBarManager, getToolBarManager2, run, setStatus, showTopSeperator, toolBarChildrenExist
 
Methods inherited from class org.eclipse.jface.window.Window
create, createContents, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getInitialLocation, getInitialSize, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, initializeBounds, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RM

protected final ResourceManager RM

application

protected Application application

hasBeenUpdated

protected boolean hasBeenUpdated

initialized

protected boolean initialized

size

protected org.eclipse.swt.graphics.Point size
Constructor Detail

AbstractWindow

public AbstractWindow()
Parameters:
parentShell -
Method Detail

computeSize

public static org.eclipse.swt.graphics.Point computeSize(int linuxW,
                                                         int linuxH)

computeWidth

public static int computeWidth(int linuxW)

computeHeight

public static int computeHeight(int linuxH)

configureShell

protected void configureShell(org.eclipse.swt.widgets.Shell shell)
Overrides:
configureShell in class org.eclipse.jface.window.ApplicationWindow

close

public boolean close()
Overrides:
close in class org.eclipse.jface.window.ApplicationWindow

getFullWindowTitle

protected java.lang.String getFullWindowTitle()

monitorControl

public void monitorControl(org.eclipse.swt.widgets.Text ctrl)

monitorControl

public void monitorControl(org.eclipse.swt.widgets.Button ctrl)

monitorControl

public void monitorControl(org.eclipse.swt.widgets.Combo ctrl)

monitorControl

protected void monitorControl(int swtEventType,
                              org.eclipse.swt.widgets.Control ctrl)

resetErrorState

public void resetErrorState(org.eclipse.swt.widgets.Control ctrl)

setInError

public void setInError(org.eclipse.swt.widgets.Control ctrl)

constrainShellSize

protected void constrainShellSize()
Overrides:
constrainShellSize in class org.eclipse.jface.window.Window

registerUpdate

protected void registerUpdate()

shellActivated

public void shellActivated(org.eclipse.swt.events.ShellEvent e)

shellClosed

public void shellClosed(org.eclipse.swt.events.ShellEvent e)

cancelChanges

protected void cancelChanges()

shellDeactivated

public void shellDeactivated(org.eclipse.swt.events.ShellEvent e)

shellDeiconified

public void shellDeiconified(org.eclipse.swt.events.ShellEvent e)

shellIconified

public void shellIconified(org.eclipse.swt.events.ShellEvent e)

showCancelMessage

protected int showCancelMessage()

setModal

public void setModal(AbstractWindow window)

getSize

public org.eclipse.swt.graphics.Point getSize()

setSize

public void setSize(org.eclipse.swt.graphics.Point size)

getTableLinesVisible

public static boolean getTableLinesVisible()

getTitle

public abstract java.lang.String getTitle()

checkBusinessRules

protected abstract boolean checkBusinessRules()

updateState

protected abstract void updateState(boolean rulesSatisfied)

saveChanges

protected abstract void saveChanges()

configureForTable

public static java.lang.String configureForTable(java.lang.String text)