|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object swingwt.awt.Component swingwt.awt.Container swingwtx.swing.JComponent swingwtx.swing.JInternalFrame
A JInternalFrame implementation. It is capable of drawing window decorations and behaving like real MDI, or can represent a tabbed container if JDesktopPane is using tabbed emulation
Nested Class Summary | |
protected class |
JInternalFrame.DecoratedRootPane
This is a JRootPane descendant that is capable of drawing the border around the contents of the JInternalFrame. |
Nested classes inherited from class swingwtx.swing.JComponent |
JComponent.InternalFrameSelectionListener |
Field Summary | |
protected JInternalFrame.DecoratedRootPane |
decoration
Our special rootpane, cast to it's correct type |
protected JButton |
defaultButton
|
protected boolean |
disposed
|
protected boolean |
drawDecoration
Set to true if the decoration (border, buttons, title, icon, etc.) need drawing around the JInternalFrame |
protected java.util.Vector |
internalFrameListeners
|
protected JDesktopPane |
parentpane
|
protected int |
pCloseOperation
|
protected Icon |
pImage
|
protected org.eclipse.swt.widgets.Composite |
ppeer
|
protected java.lang.String |
pTitle
|
protected JRootPane |
rootPane
|
Fields inherited from class swingwtx.swing.JComponent |
accessibleContext, actionMap, ancestorInputMap, border, clientProperties, descendantHasPeer, focusInputMap, internalFrameAdapter, internalFrameParent, opaque, propertyChangeListeners, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, windowInputMap |
Fields inherited from class swingwt.awt.Container |
composite, comps, containerListeners, layout, queuedValidateRequest |
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 | |
JInternalFrame()
|
|
JInternalFrame(java.lang.String title)
|
|
JInternalFrame(java.lang.String title,
boolean resizable)
|
|
JInternalFrame(java.lang.String title,
boolean resizable,
boolean closable)
|
|
JInternalFrame(java.lang.String title,
boolean resizable,
boolean closable,
boolean maximizable)
|
|
JInternalFrame(java.lang.String title,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable)
|
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 |
addInternalFrameListener(InternalFrameListener l)
|
void |
dispose()
Destroys the component |
Container |
getContentPane()
|
JButton |
getDefaultButton()
|
int |
getDefaultCloseOperation()
|
Icon |
getFrameIcon()
|
Component |
getGlassPane()
|
JDesktopPane |
getJDesktopPane()
|
JMenuBar |
getJMenuBar()
|
JLayeredPane |
getLayeredPane()
|
LayoutManager |
getLayout()
Overridden to point to getContentPane() rather than throwing an error |
MenuBar |
getMenuBar()
|
protected JDesktopPane |
getParentPane()
|
JRootPane |
getRootPane()
|
Dimension |
getSize()
Returns the peers actual size. |
org.eclipse.swt.widgets.Control |
getSWTPeer()
Returns the SWT peer |
java.lang.String |
getTitle()
|
void |
hide()
Makes the component invisible |
boolean |
isClosable()
|
boolean |
isIconifiable()
|
boolean |
isMaximizable()
|
boolean |
isMaximum()
|
boolean |
isResizable()
|
boolean |
isSelected()
|
void |
pack()
|
protected boolean |
processFrameClosing()
Called when the user has closed the window - returns true if the user is allowed to close it |
void |
processInternalFrameEvent(int eventID)
Allows firing of internal frame events |
protected void |
refreshFrame()
Finds the component representing this JInternalFrame and updates all it's properties based on what we have stored here. |
void |
registerEvents()
When the component has been added to a container, this routine gets called to tell it to set up SWT listeners for all its events. |
void |
remove(Component c)
Overridden to point to getContentPane() rather than throwing an error |
void |
setClosable(boolean b)
|
void |
setClosed(boolean b)
|
void |
setContentPane(Container contentPane)
|
void |
setDefaultButton(JButton button)
|
void |
setDefaultCloseOperation(int operation)
|
void |
setDrawDecoration(boolean b)
SwingWT specific - if false, prevents JInternalFrame's drawing their window decorations |
void |
setFrameIcon(Icon icon)
|
void |
setGlassPane(Component glassPane)
|
void |
setIcon(boolean b)
|
void |
setIconifiable(boolean b)
|
void |
setJMenuBar(JMenuBar menu)
|
void |
setLayeredPane(JLayeredPane layeredPane)
|
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 |
setMaximizable(boolean b)
|
void |
setMaximum(boolean b)
|
void |
setMenuBar(MenuBar menu)
|
protected void |
setParentPane(JDesktopPane jdp)
|
void |
setResizable(boolean b)
|
void |
setSelected(boolean b)
|
void |
setSize(Dimension d)
Sets the peer's actual size |
void |
setSize(int width,
int height)
Sets the peer's actual size |
void |
setSwingWTParent(Container parent)
Callback for when this JComponent is added to a container. |
void |
setTitle(java.lang.String title)
|
void |
show()
Makes the component visible |
void |
toBack()
|
void |
toFront()
|
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.Composite ppeer
protected java.util.Vector internalFrameListeners
protected JDesktopPane parentpane
protected Icon pImage
protected java.lang.String pTitle
protected int pCloseOperation
protected JButton defaultButton
protected boolean disposed
protected JRootPane rootPane
protected boolean drawDecoration
protected JInternalFrame.DecoratedRootPane decoration
Constructor Detail |
public JInternalFrame()
public JInternalFrame(java.lang.String title)
public JInternalFrame(java.lang.String title, boolean resizable)
public JInternalFrame(java.lang.String title, boolean resizable, boolean closable)
public JInternalFrame(java.lang.String title, boolean resizable, boolean closable, boolean maximizable)
public JInternalFrame(java.lang.String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
Method Detail |
public Component add(Component c)
add
in class JComponent
public void add(Component c, java.lang.Object layoutModifier)
add
in class JComponent
public void remove(Component c)
remove
in class JComponent
public LayoutManager getLayout()
getLayout
in class Container
public void setLayout(LayoutManager l)
setLayout
in class Container
public void setLayout(LayoutManager2 l)
public void dispose()
JComponent
dispose
in class JComponent
public void addInternalFrameListener(InternalFrameListener l)
public int getDefaultCloseOperation()
public void setDefaultCloseOperation(int operation)
public JDesktopPane getJDesktopPane()
public Icon getFrameIcon()
public void setFrameIcon(Icon icon)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public org.eclipse.swt.widgets.Control getSWTPeer()
Component
getSWTPeer
in class Component
public void show()
Component
show
in class Component
public void hide()
Component
hide
in class Component
public void pack()
protected void setParentPane(JDesktopPane jdp)
protected JDesktopPane getParentPane()
public boolean isClosable()
public boolean isResizable()
public boolean isMaximizable()
public boolean isIconifiable()
public boolean isMaximum()
public void setClosed(boolean b)
public void setClosable(boolean b)
public void setResizable(boolean b)
public void setMaximizable(boolean b)
public void setIconifiable(boolean b)
public void setMaximum(boolean b)
public void setIcon(boolean b)
public void toFront()
public void toBack()
protected void refreshFrame()
public Dimension getSize()
Component
getSize
in class Component
public void setSize(Dimension d)
Component
setSize
in class Component
public void setSize(int width, int height)
Component
setSize
in class Component
public void setLocation(int x, int y)
Component
setLocation
in class Component
public boolean isSelected()
public void setSelected(boolean b) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
public void registerEvents()
Component
registerEvents
in class Component
protected boolean processFrameClosing()
public Container getContentPane()
getContentPane
in interface RootPaneContainer
public Component getGlassPane()
getGlassPane
in interface RootPaneContainer
public JLayeredPane getLayeredPane()
getLayeredPane
in interface RootPaneContainer
public JRootPane getRootPane()
getRootPane
in interface RootPaneContainer
public void setContentPane(Container contentPane)
setContentPane
in interface RootPaneContainer
public void setGlassPane(Component glassPane)
setGlassPane
in interface RootPaneContainer
public void setLayeredPane(JLayeredPane layeredPane)
setLayeredPane
in interface RootPaneContainer
public 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 processInternalFrameEvent(int eventID)
public void setDrawDecoration(boolean b)
public void setSwingWTParent(Container parent) throws java.lang.Exception
JComponent
setSwingWTParent
in class JComponent
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |