Class ShellFactory.AEShell
- java.lang.Object
-
- org.eclipse.swt.widgets.Widget
-
- org.eclipse.swt.widgets.Control
-
- org.eclipse.swt.widgets.Scrollable
-
- org.eclipse.swt.widgets.Composite
-
- org.eclipse.swt.widgets.Canvas
-
- org.eclipse.swt.widgets.Decorations
-
- org.eclipse.swt.widgets.Shell
-
- com.biglybt.ui.swt.components.shell.ShellFactory.AEShell
-
- All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable
- Enclosing class:
- ShellFactory
public static class ShellFactory.AEShell extends org.eclipse.swt.widgets.Shell
A shell that provides platform-specific behaviour in some methods in order to better suit the user experience
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
inSetSize
-
Constructor Summary
Constructors Modifier Constructor Description private
AEShell(int styles)
private
AEShell(org.eclipse.swt.widgets.Display display)
private
AEShell(org.eclipse.swt.widgets.Display display, int styles)
private
AEShell(org.eclipse.swt.widgets.Shell parent)
private
AEShell(org.eclipse.swt.widgets.Shell parent, int styles)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkSubclass()
Does nothingorg.eclipse.swt.graphics.Point
computeSize(int wHint, int hHint)
private static int
fixupStyle(int style)
void
open()
void
pack()
void
setAdjustPXforDPI(boolean adjust)
void
setImage(org.eclipse.swt.graphics.Image image)
Sets the iconic representation of a SWT windowvoid
setImages(org.eclipse.swt.graphics.Image[] images)
Sets the iconic representation of a SWT windowvoid
setSize(int width, int height)
void
setSize(org.eclipse.swt.graphics.Point size)
-
Methods inherited from class org.eclipse.swt.widgets.Shell
addShellListener, close, dispose, forceActive, getAlpha, getFullScreen, getImeInputMode, getMaximized, getMaximumSize, getMinimumSize, getModified, getRegion, getShells, getToolBar, getVisible, gtk_new, internal_new, isEnabled, isVisible, print, removeShellListener, requestLayout, setActive, setAlpha, setEnabled, setFullScreen, setImeInputMode, setMaximized, setMaximumSize, setMaximumSize, setMenuBar, setMinimized, setMinimumSize, setMinimumSize, setModified, setRegion, setText, setVisible
-
Methods inherited from class org.eclipse.swt.widgets.Decorations
getDefaultButton, getImage, getImages, getMenuBar, getMinimized, getText, isReparentable, setDefaultButton
-
Methods inherited from class org.eclipse.swt.widgets.Canvas
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME
-
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
-
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
-
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, internal_dispose_GC, internal_new_GC, isAutoScalable, isFocusControl, moveAbove, moveBelow, pack, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setTextDirection, setToolTipText, setTouchEnabled, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
-
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
-
-
-
-
Constructor Detail
-
AEShell
private AEShell(int styles)
-
AEShell
private AEShell(org.eclipse.swt.widgets.Display display)
-
AEShell
private AEShell(org.eclipse.swt.widgets.Display display, int styles)
-
AEShell
private AEShell(org.eclipse.swt.widgets.Shell parent)
-
AEShell
private AEShell(org.eclipse.swt.widgets.Shell parent, int styles)
-
-
Method Detail
-
fixupStyle
private static int fixupStyle(int style)
-
checkSubclass
protected void checkSubclass()
Does nothing- Overrides:
checkSubclass
in classorg.eclipse.swt.widgets.Decorations
-
setImage
public void setImage(org.eclipse.swt.graphics.Image image)
Sets the iconic representation of a SWT window
The icon is often located at the top-left corner of the title bar. This is different from Mac OS X's document proxy icon.
For Mac OS X, this method does nothing (because the dock's image would be set instead).
- Overrides:
setImage
in classorg.eclipse.swt.widgets.Decorations
- Parameters:
shell
- The SWT windowimgKey
- ImageRepository key for the image
-
setImages
public void setImages(org.eclipse.swt.graphics.Image[] images)
Sets the iconic representation of a SWT window
The icon is often located at the top-left corner of the title bar. This is different from Mac OS X's document proxy icon.
For Mac OS X, this method does nothing (because the dock's image would be set instead).
- Overrides:
setImages
in classorg.eclipse.swt.widgets.Decorations
- Parameters:
shell
- The SWT windowimages
- Images
-
computeSize
public org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint)
- Overrides:
computeSize
in classorg.eclipse.swt.widgets.Control
-
setAdjustPXforDPI
public void setAdjustPXforDPI(boolean adjust)
-
setSize
public void setSize(int width, int height)
- Overrides:
setSize
in classorg.eclipse.swt.widgets.Control
-
pack
public void pack()
- Overrides:
pack
in classorg.eclipse.swt.widgets.Control
-
setSize
public void setSize(org.eclipse.swt.graphics.Point size)
- Overrides:
setSize
in classorg.eclipse.swt.widgets.Control
-
open
public void open()
- Overrides:
open
in classorg.eclipse.swt.widgets.Shell
-
-