public class IlvDesktopPane extends JDesktopPane implements IlvMDIClient, IlvMDIContainerTemplate
IlvInternalFrame
,
Serialized FormJDesktopPane.AccessibleJDesktopPane
JLayeredPane.AccessibleJLayeredPane
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static String |
CASCADE_CMD
Action command key for the action that cascades the internal frames
contained by the desktop pane.
|
static String |
DEFAULT_SETTINGS_NAME
Default name for desktop panes within the settings.
|
static String |
DESKTOP_PANE_SETTINGS_TYPE
Type of the settings element providing the settings for desktop
panes.
|
static String |
TILE_HORIZONTALLY_CMD
Action command key for the action that horizontally tiles the internal
frames contained by the desktop pane.
|
static String |
TILE_VERTICALLY_CMD
Action command key for the action that vertically tiles the internal frames
contained by the desktop pane.
|
LIVE_DRAG_MODE, OUTLINE_DRAG_MODE
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DEFAULT_WINDOW_LIST_COMMAND
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlvDesktopPane()
Constructs an
IlvDesktopPane . |
Modifier and Type | Method and Description |
---|---|
void |
addMDICLientListener(MDIClientListener listener)
Adds the specified MDI client listener to receive events from this
MDI client.
|
void |
addViewContainer(IlvMDIViewContainer viewContainer)
Adds a newly created internal frame to the desktop pane.
|
void |
cascadeFrames()
Cascades the frame of this desktop pane.
|
void |
close(IlvInternalFrame frame)
Closes the specified internal frame.
|
IlvMDIViewContainer |
createViewContainer(IlvDocument document)
Creates a new internal frame for the specified document.
|
IlvMDIViewContainer |
getActiveViewContainer()
Returns the
IlvInternalFrame currently active in the desktop
pane. |
IlvApplication |
getApplication()
Returns the application associated with desktop pane.
|
Container |
getClientContainer()
Returns the container that owns all the internal frames.
|
String |
getDocumentListActionCommand()
Returns the command name of the action list that is used for
displaying the list of opened documents in this MDI client.
|
IlvSettings |
getSettings()
Returns the settings that initialize the desktop pane.
|
IlvSettingsElement |
getSettingsElement()
Returns the settings element that provides the settings for this
desktop pane.
|
String |
getSettingsName()
Returns the name that identifies the MDI tab pane within the settings.
|
IlvSettingsQuery |
getSettingsQuery()
Returns the query that selects the settings element that provides
the settings of this MDI tabbed pane.
|
String |
getSettingsType()
Returns the type of the settings elements that provides the settings for
MDI tab panes.
|
protected void |
readSettings(IlvSettingsElement settingsElement)
Initializes the desktop pane with the specified settings element.
|
void |
removeMDIClientListener(MDIClientListener listener)
Removes the specified MDI client listener, so that it no longer receives
MDI client events from this MDI client.
|
void |
setApplication(IlvApplication application)
Sets the application of this desktop pane.
|
void |
setDocumentListActionCommand(String command)
Sets the command name of the action list that is used for
displaying the list of opened documents in this MDI client.
|
void |
setSettings(IlvSettings settings)
Sets the settings that initialize the desktop pane.
|
void |
setSettingsElement(IlvSettingsElement element)
Forces the settings of the desktop pane to be read and written from the
specified settings element.
|
void |
setSettingsName(String settingsName)
Sets the name that identifies the MDI tab pane within the settings.
|
void |
setSettingsQuery(IlvSettingsQuery query)
Sets the query that selects the settings element that provides the settings
for this MDI tabbed pane.
|
void |
setSettingsType(String settingsType)
Sets the type of the settings elements that provides the settings for
MDI tabbed panes.
|
void |
setTitleFrame(JFrame frame)
Sets the frame that has the title that will be completed with the title of the
active internal frame.
|
void |
tileFrames(boolean horizontally)
Tiles the frames of this desktop pane horizontally or vertically.
|
protected void |
writeSettings(IlvSettingsElement settingsElement)
Writes the settings of the desktop pane.
|
addImpl, getAccessibleContext, getAllFrames, getAllFramesInLayer, getDesktopManager, getDragMode, getSelectedFrame, getUI, getUIClassID, paramString, remove, remove, removeAll, selectFrame, setComponentZOrder, setDesktopManager, setDragMode, setSelectedFrame, setUI, updateUI
getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, putLayer, setLayer, setLayer, setPosition
addAncestorListener, 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, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, 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, reshape, 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, update
add, 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, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, 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, getFocusCycleRootAncestor, 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, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static String DESKTOP_PANE_SETTINGS_TYPE
public static String DEFAULT_SETTINGS_NAME
public static String TILE_VERTICALLY_CMD
public static String TILE_HORIZONTALLY_CMD
public static String CASCADE_CMD
public IlvMDIViewContainer getActiveViewContainer()
IlvInternalFrame
currently active in the desktop
pane.getActiveViewContainer
in interface IlvMDIClient
null
if the
desktop pane does not contain internal frames.public void addMDICLientListener(MDIClientListener listener)
null
, no exception is thrown and no
action is performed.addMDICLientListener
in interface IlvMDIClient
listener
- The MDI client listener to add.public void removeMDIClientListener(MDIClientListener listener)
listener
is null
, no exception is thrown
and no action is performed.removeMDIClientListener
in interface IlvMDIClient
listener
- The MDI client listener to remove.public IlvApplication getApplication()
getApplication
in interface IlvMDIClient
setApplication(ilog.views.appframe.IlvApplication)
public void setApplication(IlvApplication application)
setApplication
in interface IlvMDIClient
application
- The new application of this desktop pane.getApplication()
public void tileFrames(boolean horizontally)
horizontally
- If true
, the frames of the desktop pane
are tiled horizontally. If false
, the frames are tiled
vertically.public void cascadeFrames()
public Container getClientContainer()
getClientContainer
in interface IlvMDIClient
this
instance.public IlvMDIViewContainer createViewContainer(IlvDocument document)
createViewContainer
in interface IlvMDIContainerTemplate
IlvInternalFrame
class.IlvMDIContainerTemplate.addViewContainer(ilog.views.appframe.docview.IlvMDIViewContainer)
public void addViewContainer(IlvMDIViewContainer viewContainer)
addViewContainer
in interface IlvMDIContainerTemplate
viewContainer
- The newly created internal frame to add.IlvInternalFrame
public IlvSettings getSettings()
setSettings(ilog.views.appframe.settings.IlvSettings)
public void setSettings(IlvSettings settings)
settings
- The new settings of the desktop pane.getSettings()
public String getSettingsName()
name
attribute of the
settings element that provides the settings for the associated object.
If no name has been specified using the method setSettingsName(java.lang.String)
,
null
is returned.setSettingsName(java.lang.String)
,
getSettingsElement()
,
getSettingsQuery()
public void setSettingsName(String settingsName)
settingsName
- The new settings name.public String getSettingsType()
TABBED_PANE_SETTINGS_TYPE
string if no
settings type has been specified with the method setSettingsType(java.lang.String)
.readSettings(ilog.views.appframe.settings.IlvSettingsElement)
,
setSettingsType(java.lang.String)
public void setSettingsType(String settingsType)
settingsType
- The new settings type.readSettings(ilog.views.appframe.settings.IlvSettingsElement)
,
getSettingsType()
public void setSettingsQuery(IlvSettingsQuery query)
query
- The new settings query.getSettingsQuery()
public IlvSettingsQuery getSettingsQuery()
If a query has been specified with the method setSettingsQuery(ilog.views.appframe.settings.IlvSettingsQuery)
,
it is returned. Otherwise, a query is built for selecting a settings
root element with the type returned by getSettingsType()
and the
value of the name
attribute equal to the name returned
by getSettingsName()
. If getSettingsName()
returns
null
, the query selects the first encountered root element
with the settings type given by the method getSettingsType()
.
setSettingsQuery(ilog.views.appframe.settings.IlvSettingsQuery)
,
#see #getSettingsType
public void setSettingsElement(IlvSettingsElement element)
getSettings()
with the query getSettingsQuery()
.element
- The settings element that provides the settings for the
desktop pane.getSettingsElement()
public IlvSettingsElement getSettingsElement()
setSettingsElement(ilog.views.appframe.settings.IlvSettingsElement)
method, it is returned. Otherwise,
the settings element is selected from the settings given by the
getSettings()
method, with the query returned by
getSettingsQuery()
.null
if no settings
element could be found.setSettingsElement(ilog.views.appframe.settings.IlvSettingsElement)
,
getSettingsQuery()
protected void readSettings(IlvSettingsElement settingsElement)
settingsElement
- The settings element from which to initialize the
desktop pane.protected void writeSettings(IlvSettingsElement settingsElement)
settingsElement
- The root settings element to write the settings to.public void setTitleFrame(JFrame frame)
setTitleFrame
in interface IlvMDIClient
frame
- The frame that has title to be completed with the active internal
frame.public String getDocumentListActionCommand()
getDocumentListActionCommand
in interface IlvMDIClient
public void setDocumentListActionCommand(String command)
command
- The command name of the action list.public void close(IlvInternalFrame frame)
frame
- The internal frame to close.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.