|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.window.Window
dsto.dfc.swt.controls.NiceWindow
livespace.ui.dashboard.AbstractDashboardPanel
public abstract class AbstractDashboardPanel
Base class for dashboard panels using the JFace Window class as a basis. Allows dashboard.window.trim, dashboard.window.size,dashboard.window.on_top and dashboard.window.on_screen as config items.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
---|
org.eclipse.jface.window.Window.IExceptionHandler |
Field Summary | |
---|---|
protected IDashboard |
dashboard
|
protected String |
panelId
|
Fields inherited from class dsto.dfc.swt.controls.NiceWindow |
---|
GLOBAL_PREFERENCES, locationProperty, preferences, sizeProperty |
Fields inherited from class org.eclipse.jface.window.Window |
---|
CANCEL, OK |
Constructor Summary | |
---|---|
AbstractDashboardPanel(IDashboard dashboard,
String panelId)
|
|
AbstractDashboardPanel(IDashboard dashboard,
String panelId,
IDataBean preferences)
|
Method Summary | |
---|---|
void |
activate()
Default activation method is to simply call open (). |
void |
create()
|
protected org.eclipse.swt.graphics.Rectangle |
getConstrainedShellBounds(org.eclipse.swt.graphics.Rectangle preferredSize)
Allow full screen windows. |
protected org.eclipse.swt.graphics.Point |
getDefaultInitialLocation(org.eclipse.swt.graphics.Point initialSize)
Subclasses may override. |
protected org.eclipse.swt.graphics.Point |
getDefaultInitialSize()
Subclasses may override. |
protected org.eclipse.swt.graphics.Point |
getInitialLocation(org.eclipse.swt.graphics.Point initialSize)
Allow dashboard.window.on_screen setting to override default. |
protected org.eclipse.swt.graphics.Point |
getInitialSize()
Subclasses should override getDefaultInitialSize() . |
protected int |
getShellStyle()
Subclasses should use setShellStyle(int) . |
void |
setShellStyle(int style)
|
Methods inherited from class dsto.dfc.swt.controls.NiceWindow |
---|
close, getDefaultLocation, initializeBounds, savePreferences |
Methods inherited from class org.eclipse.jface.window.Window |
---|
canHandleShellCloseEvent, configureShell, constrainShellSize, createContents, createShell, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setWindowManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IDashboard dashboard
protected String panelId
Constructor Detail |
---|
public AbstractDashboardPanel(IDashboard dashboard, String panelId)
public AbstractDashboardPanel(IDashboard dashboard, String panelId, IDataBean preferences)
Method Detail |
---|
public void setShellStyle(int style)
setShellStyle
in class org.eclipse.jface.window.Window
public void activate()
activate
in interface IDashboardPanel
public void create()
create
in class org.eclipse.jface.window.Window
protected final int getShellStyle()
setShellStyle(int)
.
getShellStyle
in class org.eclipse.jface.window.Window
protected org.eclipse.swt.graphics.Point getDefaultInitialSize()
protected final org.eclipse.swt.graphics.Point getInitialSize()
getDefaultInitialSize()
.
getInitialSize
in class NiceWindow
protected org.eclipse.swt.graphics.Point getDefaultInitialLocation(org.eclipse.swt.graphics.Point initialSize)
protected final org.eclipse.swt.graphics.Point getInitialLocation(org.eclipse.swt.graphics.Point initialSize)
getDefaultInitialLocation(Point)
.
getInitialLocation
in class NiceWindow
protected final org.eclipse.swt.graphics.Rectangle getConstrainedShellBounds(org.eclipse.swt.graphics.Rectangle preferredSize)
getConstrainedShellBounds
in class org.eclipse.jface.window.Window
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |