|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectswingwt.awt.Component
swingwt.awt.Container
swingwt.awt.Window
| Field Summary | |
protected boolean |
delayPack
|
protected org.eclipse.swt.widgets.Display |
display
|
protected static int |
FRAME_DECORATION_HEIGHT
Number of pixels to allow for frame decoration during pack() |
protected static int |
FRAME_DECORATION_WIDTH
Number of pixels to allow for frame decoration during pack() |
protected Image |
iconImage
|
protected boolean |
isClosed
|
protected boolean |
isIcon
|
protected org.eclipse.swt.widgets.Shell |
peer
|
protected JMenuBar |
pMenu
|
protected MenuBar |
pMenuBar
|
protected JRootPane |
rootPane
|
protected java.lang.String |
title
|
protected java.util.Vector |
windowListeners
|
| Fields inherited from class swingwt.awt.Container |
composite, comps, containerListeners, layout, queuedValidateRequest |
| Fields inherited from interface swingwt.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
Window(Frame parent)
|
|
Window(Window parent)
|
|
Window(Window parent,
GraphicsConfiguration gc)
|
|
| Method Summary | |
Component |
add(Component c)
Overridden to point to getContentPane() rather than throwing an error |
void |
add(Component c,
java.lang.Object layoutModifier)
Overridden to point to getContentPane() rather than throwing an error |
void |
addMouseListener(MouseListener l)
Overridden to add mouse listeners to the content pane instead |
void |
addWindowListener(WindowListener l)
|
protected void |
create()
|
protected void |
create(int SWTFrameType)
Actually does the work of creating the Window peer All the descendants of Window call this with an appropriate SWT type as part of their constructor. |
protected void |
dispatchEvents()
|
void |
dispose()
Destroys the component and stops all listeners |
Rectangle |
getBounds()
Returns the actual bounds of the component (or 0,0,0,0 if it isn't realised yet) |
JButton |
getDefaultButton()
|
Image |
getIconImage()
|
JMenuBar |
getJMenuBar()
|
LayoutManager |
getLayout()
Overridden to point to getContentPane() rather than throwing an error |
Point |
getLocationOnScreen()
FIXME: Bad algorithm here, but can't find appropriate routine. |
MenuBar |
getMenuBar()
|
Dimension |
getSize()
Returns the peers actual size. |
protected int |
getSWTFrameType()
|
org.eclipse.swt.widgets.Control |
getSWTPeer()
Returns the SWT peer |
java.lang.String |
getTitle()
|
void |
hide()
Makes the component invisible |
boolean |
isActive()
|
void |
pack()
|
protected void |
processWindowEvent(int id)
|
protected void |
processWindowEvent(WindowEvent e)
|
void |
registerWindowEvents()
|
void |
remove(Component c)
Overridden to point to getContentPane() rather than throwing an error |
void |
removeMouseListener(MouseListener l)
Overridden to remove mouse listeners from the content pane instead |
void |
removeWindowListener(WindowListener l)
|
protected void |
repaintFix()
Under GTK2 and MacOSX, SWT has some trouble issuing repaints, the only way around it seems to be to tell SWT to relayout the top-level container again after creation and child components have been added. |
void |
setBounds(int x,
int y,
int width,
int height)
Sets the physical bounds of the component - used by layout managers |
void |
setBounds(Rectangle r)
Sets the physical bounds of the component |
void |
setCachedProperties()
If the component has just been added to a container, but properties were set in the meantime, this routine gets called by JSWTComposite to set the cached properties. |
void |
setDefaultButton(JButton button)
|
void |
setIconImage(Image icon)
|
void |
setJMenuBar(JMenuBar menu)
|
void |
setLayout(LayoutManager l)
Overridden to point to getContentPane() rather than throwing an error |
void |
setLayout(LayoutManager2 l)
Overridden to point to getContentPane() rather than throwing an error |
void |
setLocation(int x,
int y)
Sets the component's location in it's container |
void |
setLocation(Point p)
Sets the component's location in it's container |
void |
setLocationRelativeTo(Component c)
|
void |
setMenuBar(MenuBar menu)
|
void |
setSize(Dimension d)
Sets the peer's actual size |
void |
setSize(int width,
int height)
Sets the peer's actual size |
void |
setSwingWTParent(Composite parent)
|
void |
setTitle(java.lang.String s)
|
void |
setVisible(boolean b)
Change the visibility of the component |
void |
show()
Makes the component visible |
void |
toBack()
Sends the window to the back |
void |
toFront()
Sends the window to the front |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.eclipse.swt.widgets.Shell peer
protected org.eclipse.swt.widgets.Display display
protected java.util.Vector windowListeners
protected boolean isClosed
protected boolean isIcon
protected JRootPane rootPane
protected java.lang.String title
protected Image iconImage
protected JMenuBar pMenu
protected MenuBar pMenuBar
protected boolean delayPack
protected static final int FRAME_DECORATION_HEIGHT
protected static final int FRAME_DECORATION_WIDTH
| Constructor Detail |
public Window(Frame parent)
public Window(Window parent)
public Window(Window parent,
GraphicsConfiguration gc)
| Method Detail |
protected int getSWTFrameType()
protected void create()
protected void create(int SWTFrameType)
public void setCachedProperties()
Component
setCachedProperties in class Componentpublic void setLocation(Point p)
Component
setLocation in class Componentpublic Point getLocationOnScreen()
getLocationOnScreen in class Componentpublic Component add(Component c)
add in class Container
public void add(Component c,
java.lang.Object layoutModifier)
add in class Containerpublic void remove(Component c)
remove in class Containerpublic LayoutManager getLayout()
getLayout in class Containerpublic void addMouseListener(MouseListener l)
addMouseListener in class Componentpublic void removeMouseListener(MouseListener l)
removeMouseListener in class Componentpublic void setLayout(LayoutManager l)
setLayout in class Containerpublic void setLayout(LayoutManager2 l)
public void pack()
public void setLocation(int x,
int y)
Component
setLocation in class Componentpublic void setLocationRelativeTo(Component c)
public Dimension getSize()
Component
getSize in class Componentpublic Rectangle getBounds()
Component
getBounds in class Component
public void setSize(int width,
int height)
Component
setSize in class Componentpublic void setSize(Dimension d)
Component
setSize in class Component
public void setBounds(int x,
int y,
int width,
int height)
Component
setBounds in class Componentpublic void setBounds(Rectangle r)
Component
setBounds in class Componentpublic boolean isActive()
public void show()
Component
show in class Componentpublic void hide()
Component
hide in class Componentpublic void addWindowListener(WindowListener l)
public void removeWindowListener(WindowListener l)
public void setVisible(boolean b)
Component
setVisible in class Componentpublic java.lang.String getTitle()
public void setTitle(java.lang.String s)
public Image getIconImage()
public void setIconImage(Image icon)
public void dispose()
Component
dispose in class Containerpublic void setJMenuBar(JMenuBar menu)
public JMenuBar getJMenuBar()
public void setMenuBar(MenuBar menu)
public MenuBar getMenuBar()
public void setDefaultButton(JButton button)
public JButton getDefaultButton()
public void registerWindowEvents()
protected void processWindowEvent(int id)
protected void processWindowEvent(WindowEvent e)
protected void dispatchEvents()
public void toFront()
public void toBack()
protected void repaintFix()
public org.eclipse.swt.widgets.Control getSWTPeer()
Component
getSWTPeer in class Component
public void setSwingWTParent(Composite parent)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||