public class InternalFrameAdapter extends JInternalFrame implements SwingWindow
A window adapter implementation for Swing internal frames.
Unfortunately in Swing's inheritance hierarchy the
JInternalFrame class is not derived from
java.awt.Window. So it needs special treatment and its very own
adapter class.
JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIconJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyclosable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTYlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
InternalFrameAdapter(boolean center)
Creates a new instance of
InternalFrameAdapter. |
| Modifier and Type | Method and Description |
|---|---|
void |
addMouseListener(FormMouseListener l)
Adds a mouse listener to this window.
|
void |
addWindowListener(WindowListener l)
Registers the specified listener at this window.
|
boolean |
close(boolean force)
Closes this window.
|
Component |
getComponent()
Returns the component representing this window.
|
Window |
getParentWindow()
Returns this window's parent.
|
Object |
getRootContainer()
Returns the root container for this internal frame.
|
WindowClosingStrategy |
getWindowClosingStrategy()
Returns this window's closing strategy.
|
Object |
getWindowController()
Returns this window's controller.
|
net.sf.jguiraffe.gui.platform.swing.builder.window.WindowHelper |
getWindowHelper()
Returns the window helper used by this window implementation.
|
Collection<WindowListener> |
getWindowListeners()
Returns a collection with the registered window listeners.
|
int |
getXPos()
Returns the xpos of this internal frame.
|
int |
getYPos()
Returns the ypos of this internal frame.
|
void |
open()
Opens this internal frame.
|
void |
packWindow()
Packs this internal frame.
|
void |
registerAutoCloseListener()
Registers an internal listener that handles auto-close operations.
|
void |
removeMouseListener(FormMouseListener l)
Removes a mouse listener from this window.
|
void |
removeWindowListener(WindowListener l)
Removes the specified window listener.
|
void |
setParentWindow(Window parent)
Sets this window's parent window.
|
void |
setWindowClosingStrategy(WindowClosingStrategy windowClosingStrategy)
Sets the closing strategy for this window.
|
void |
setWindowController(Object ctrl)
Sets the window's controller.
|
addImpl, addInternalFrameListener, createRootPane, dispose, doDefaultCloseAction, fireInternalFrameEvent, getAccessibleContext, getContentPane, getDefaultCloseOperation, getDesktopIcon, getDesktopPane, getFocusCycleRootAncestor, getFocusOwner, getFrameIcon, getGlassPane, getInternalFrameListeners, getJMenuBar, getLastCursor, getLayer, getLayeredPane, getMenuBar, getMostRecentFocusOwner, getNormalBounds, getRootPane, getTitle, getUI, getUIClassID, getWarningString, hide, isClosable, isClosed, isFocusCycleRoot, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isRootPaneCheckingEnabled, isSelected, moveToBack, moveToFront, pack, paintComponent, paramString, remove, removeInternalFrameListener, reshape, restoreSubcomponentFocus, setClosable, setClosed, setContentPane, setCursor, setDefaultCloseOperation, setDesktopIcon, setFocusCycleRoot, setFrameIcon, setGlassPane, setIcon, setIconifiable, setJMenuBar, setLayer, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setNormalBounds, setResizable, setRootPane, setRootPaneCheckingEnabled, setSelected, setTitle, setUI, show, toBack, toFront, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdispose, getRootPanepublic InternalFrameAdapter(boolean center)
InternalFrameAdapter.center - a flag whether the internal frame should be centeredpublic void open()
public boolean close(boolean force)
WindowHelper.public int getXPos()
public int getYPos()
public void addWindowListener(WindowListener l)
addWindowListener in interface Windowl - the new listenerpublic void removeWindowListener(WindowListener l)
removeWindowListener in interface Windowl - the listener to removepublic WindowClosingStrategy getWindowClosingStrategy()
getWindowClosingStrategy in interface Windowpublic void setWindowClosingStrategy(WindowClosingStrategy windowClosingStrategy)
setWindowClosingStrategy in interface WindowwindowClosingStrategy - the new closing strategypublic Object getWindowController()
getWindowController in interface Windowpublic Object getRootContainer()
getRootContainer in interface Windowpublic Window getParentWindow()
getParentWindow in interface Windowpublic Collection<WindowListener> getWindowListeners()
getWindowListeners in interface SwingWindowpublic final net.sf.jguiraffe.gui.platform.swing.builder.window.WindowHelper getWindowHelper()
getWindowHelper in interface SwingWindowpublic Component getComponent()
getComponent in interface SwingWindowpublic void setParentWindow(Window parent)
setParentWindow in interface SwingWindowparent - the new parentpublic void setWindowController(Object ctrl)
setWindowController in interface SwingWindowctrl - the new controllerpublic void packWindow()
pack() method.packWindow in interface SwingWindowpublic void addMouseListener(FormMouseListener l)
WindowHelper.addMouseListener in interface Windowl - the listener to be addedpublic void removeMouseListener(FormMouseListener l)
WindowHelper.removeMouseListener in interface Windowl - the listener to be removedpublic void registerAutoCloseListener()
InternalFrameListener that reacts on
the internalFrameClosing event and then delegates to the window
helper in order to close this internal frame.registerAutoCloseListener in interface SwingWindowCopyright © 2016 The JGUIraffe Team. All rights reserved.