org.gudy.azureus2.ui.swt.components.shell
Class ShellFactory.AEShell

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by org.eclipse.swt.widgets.Canvas
                      extended by org.eclipse.swt.widgets.Decorations
                          extended by org.eclipse.swt.widgets.Shell
                              extended by org.gudy.azureus2.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 inherited from class org.eclipse.swt.widgets.Control
view
 
Method Summary
protected  void checkSubclass()
          Does nothing
 org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint)
           
 void open()
           
 void pack()
           
 void setAdjustPXforDPI(boolean adjust)
           
 void setImage(org.eclipse.swt.graphics.Image image)
          Sets the iconic representation of a SWT window
 void setImages(org.eclipse.swt.graphics.Image[] images)
          Sets the iconic representation of a SWT window
 void setSize(int width, int height)
           
 void setSize(org.eclipse.swt.graphics.Point size)
           
 
Methods inherited from class org.eclipse.swt.widgets.Shell
addShellListener, close, cocoa_new, computeSize, computeTrim, forceActive, getAlpha, getBounds, getClientArea, getFullScreen, getImeInputMode, getLocation, getMaximized, getMinimized, getMinimumSize, getModified, getRegion, getShell, getShells, getSize, getToolBar, internal_new, isEnabled, isVisible, print, removeShellListener, setActive, setAlpha, setEnabled, setFullScreen, setImeInputMode, setMaximized, setMenuBar, setMinimized, setMinimumSize, setMinimumSize, setModified, setRegion, setText, setVisible
 
Methods inherited from class org.eclipse.swt.widgets.Decorations
getDefaultButton, getImage, getImages, getMenuBar, 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
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, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getMenu, getMonitor, getOrientation, getParent, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, 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, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

checkSubclass

protected void checkSubclass()
Does nothing

Overrides:
checkSubclass in class org.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 class org.eclipse.swt.widgets.Decorations
Parameters:
shell - The SWT window
imgKey - 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 class org.eclipse.swt.widgets.Decorations
Parameters:
shell - The SWT window
images - Images

computeSize

public org.eclipse.swt.graphics.Point computeSize(int wHint,
                                                  int hHint)
Overrides:
computeSize in class org.eclipse.swt.widgets.Control

setAdjustPXforDPI

public void setAdjustPXforDPI(boolean adjust)

setSize

public void setSize(int width,
                    int height)
Overrides:
setSize in class org.eclipse.swt.widgets.Control

pack

public void pack()
Overrides:
pack in class org.eclipse.swt.widgets.Control

setSize

public void setSize(org.eclipse.swt.graphics.Point size)
Overrides:
setSize in class org.eclipse.swt.widgets.Control

open

public void open()
Overrides:
open in class org.eclipse.swt.widgets.Shell