swingwtx.swing
Class JFrame

java.lang.Object
  extended byswingwt.awt.Component
      extended byswingwt.awt.Container
          extended byswingwt.awt.Window
              extended byswingwt.awt.Frame
                  extended byswingwtx.swing.JFrame
All Implemented Interfaces:
ImageObserver, MenuContainer, RootPaneContainer, WindowConstants

public class JFrame
extends Frame
implements WindowConstants, RootPaneContainer


Field Summary
protected  int closeOperation
           
static int ICONIFIED
           
protected  boolean isMax
           
static int MAXIMIZED_BOTH
           
static int MAXIMIZED_HORIZ
           
static int MAXIMIZED_VERT
           
static int NORMAL
           
protected  int state
           
 
Fields inherited from class swingwt.awt.Frame
isResizable
 
Fields inherited from class swingwt.awt.Window
delayPack, display, FRAME_DECORATION_HEIGHT, FRAME_DECORATION_WIDTH, iconImage, isClosed, isIcon, peer, pMenu, pMenuBar, rootPane, title, windowListeners
 
Fields inherited from class swingwt.awt.Container
composite, comps, containerListeners, layout, queuedValidateRequest
 
Fields inherited from class swingwt.awt.Component
accessibleContext, actionCommand, actionListeners, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListeners, componentName, consumeAvailableHeight, consumeAvailableWidth, focusable, focusListeners, inputMethodListeners, isUserSetFont, keyListeners, layoutModifier, LEFT_ALIGNMENT, LOCK, mouseListeners, mouseMotionListeners, mouseWheelListeners, parent, pBackground, pCursor, pDoubleBuffered, pEnabled, pFont, pForeground, pLayoutData, pLocation, pMaxSize, pMinSize, ppeer, pPrefSize, pSize, pToolTipText, pVisible, RIGHT_ALIGNMENT, swingWTDefaultActionEventAdapter, swingWTEventAdapter, TOP_ALIGNMENT
 
Fields inherited from interface swingwtx.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface swingwt.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JFrame()
           
JFrame(GraphicsConfiguration gc)
           
JFrame(java.lang.String title)
           
 
Method Summary
 Container getContentPane()
           
 int getDefaultCloseOperation()
           
 int getExtendedState()
           
 Component getGlassPane()
           
 JLayeredPane getLayeredPane()
           
 JRootPane getRootPane()
           
 void registerWindowEvents()
           
 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 setContentPane(Container contentPane)
           
 void setDefaultCloseOperation(int operation)
           
 void setExtendedState(int state)
           
 void setGlassPane(Component glassPane)
           
 void setLayeredPane(JLayeredPane layeredPane)
           
 void toggleWindowState()
          Handy for layout problems.
 
Methods inherited from class swingwt.awt.Frame
getSWTFrameType, isResizable, remove, setResizable
 
Methods inherited from class swingwt.awt.Window
add, add, addMouseListener, addWindowListener, create, create, dispatchEvents, dispose, getBounds, getDefaultButton, getIconImage, getJMenuBar, getLayout, getLocationOnScreen, getMenuBar, getSize, getSWTPeer, getTitle, hide, isActive, pack, processWindowEvent, processWindowEvent, remove, removeMouseListener, removeWindowListener, repaintFix, setBounds, setBounds, setDefaultButton, setIconImage, setJMenuBar, setLayout, setLayout, setLocation, setLocation, setLocationRelativeTo, setMenuBar, setSize, setSize, setSwingWTParent, setTitle, setVisible, show, toBack, toFront
 
Methods inherited from class swingwt.awt.Container
add, add, add, addComponentToLayout, addContainerListener, debug_showContainmentTree, doAdd, doLayout, getComponent, getComponentCount, getComponentOrientation, getComponents, getComposite, getInsets, getMaximumSize, getMinimumSize, getParent, getPreferredSize, invalidate, minimumSize, preferredSize, processContainerEvent, processEvent, queuedValidate, remove, removeAll, removeComponentFromCache, removeContainerListener, revalidate, setLayoutImpl, setSwingWTParent, validate
 
Methods inherited from class swingwt.awt.Component
add, addActionListener, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseMotionListener, addMouseWheelListener, addNotify, calculatePreferredSize, componentOnlyDispose, computePreferredSize, contains, contains, createImage, createListenerArrayFromVector, createVolatileImage, dispatchEvent, getAccessibleContext, getActionCommand, getAlignmentX, getAlignmentY, getBackground, getCursor, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getListeners, getLocation, getName, getPeer, getPeerSize, getSize, getToolkit, getToolTipText, getTreeLock, getWidth, getX, getY, grabFocus, hasFocus, hasSetFont, imageUpdate, inside, isEnabled, isFocusable, isMinimumSizeSet, isShowing, isVisible, paint, paintComponent, processActionEvent, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processTraverseEvent, registerActionEvents, registerComponentEvents, registerEvents, registerExtendedModifyEvents, registerFocusEvents, registerKeyEvents, registerModifyEvents, registerMouseEvents, registerPaintEvents, registerTraversalEvents, removeActionListener, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, repaint, repaint, repaint, requestFocus, setActionCommand, setAlignmentX, setAlignmentY, setBackground, setComponentOrientation, setComponentRemoved, setCursor, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setFont, setForeground, setHeight, setMaximumSize, setMinimumSize, setName, setPreferredSize, setToolTipText, setWidth, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface swingwt.awt.MenuContainer
getFont
 

Field Detail

NORMAL

public static final int NORMAL
See Also:
Constant Field Values

ICONIFIED

public static final int ICONIFIED
See Also:
Constant Field Values

MAXIMIZED_HORIZ

public static final int MAXIMIZED_HORIZ
See Also:
Constant Field Values

MAXIMIZED_VERT

public static final int MAXIMIZED_VERT
See Also:
Constant Field Values

MAXIMIZED_BOTH

public static final int MAXIMIZED_BOTH
See Also:
Constant Field Values

closeOperation

protected int closeOperation

isMax

protected boolean isMax

state

protected int state
Constructor Detail

JFrame

public JFrame()

JFrame

public JFrame(java.lang.String title)

JFrame

public JFrame(GraphicsConfiguration gc)
Method Detail

setCachedProperties

public void setCachedProperties()
Description copied from class: Component
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.

Overrides:
setCachedProperties in class Window

getExtendedState

public int getExtendedState()

setExtendedState

public void setExtendedState(int state)

toggleWindowState

public void toggleWindowState()
Handy for layout problems. Toggles the window between max/norm according to what is set and guarantees relayout of components


getDefaultCloseOperation

public int getDefaultCloseOperation()

setDefaultCloseOperation

public void setDefaultCloseOperation(int operation)

getContentPane

public Container getContentPane()
Specified by:
getContentPane in interface RootPaneContainer

getGlassPane

public Component getGlassPane()
Specified by:
getGlassPane in interface RootPaneContainer

getLayeredPane

public JLayeredPane getLayeredPane()
Specified by:
getLayeredPane in interface RootPaneContainer

getRootPane

public JRootPane getRootPane()
Specified by:
getRootPane in interface RootPaneContainer

setContentPane

public void setContentPane(Container contentPane)
Specified by:
setContentPane in interface RootPaneContainer

setGlassPane

public void setGlassPane(Component glassPane)
Specified by:
setGlassPane in interface RootPaneContainer

setLayeredPane

public void setLayeredPane(JLayeredPane layeredPane)
Specified by:
setLayeredPane in interface RootPaneContainer

registerWindowEvents

public void registerWindowEvents()
Overrides:
registerWindowEvents in class Window