|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLayeredPane
javax.swing.JDesktopPane
com.sibvisions.rad.ui.swing.ext.JVxDesktopPane
public class JVxDesktopPane
The JVxDesktopPane extends a JDesktopPane and
enables the usage of a background image.
| Nested Class Summary | |
|---|---|
static class |
JVxDesktopPane.DisplayMode
the display mode for content. |
| Nested classes/interfaces inherited from class javax.swing.JDesktopPane |
|---|
javax.swing.JDesktopPane.AccessibleJDesktopPane |
| Nested classes/interfaces inherited from class javax.swing.JLayeredPane |
|---|
javax.swing.JLayeredPane.AccessibleJLayeredPane |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JDesktopPane |
|---|
LIVE_DRAG_MODE, OUTLINE_DRAG_MODE |
| Fields inherited from class javax.swing.JLayeredPane |
|---|
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JVxDesktopPane()
Creates a new instance of JVxDesktopPane with the JVxDesktopManager. |
|
| Method Summary | |
|---|---|
protected void |
addFrame(JVxInternalFrame pFrame)
Adds an internal frame as frame. |
protected void |
addImpl(java.awt.Component pComponent,
java.lang.Object pConstraints,
int pIndex)
Adds a Component to the desktop. |
protected void |
addTab(JVxInternalFrame pFrame)
Adds an internal frame as tab. |
void |
closeTab(TabEvent pEvent)
Invoked when a tab will be closed (before it will be closed). |
void |
deselectTab(TabEvent pEvent)
Invoked when a tab will be deselected. |
JVxDesktopPane.DisplayMode |
getDisplayMode()
Returns if the desktop pane is in tab mode. |
java.awt.LayoutManager |
getLayout()
Gets the layout manager for the content pane. |
JVxTabbedPane |
getTabbedPane()
Gets the tab pane. |
boolean |
isNavigationKeysEnabled()
Determines whether the navigation with the keyboard is enabled. |
boolean |
isTabMode()
Gets whether tab mode is active. |
boolean |
isTabsDragable()
Returns the drag option of tabs in tabbed mode. |
void |
moveTab(TabEvent pEvent)
Invoked when a tab was moved from one index to another index. |
boolean |
processKeyBinding(javax.swing.KeyStroke pStroke,
java.awt.event.KeyEvent pEvent,
int pModifier,
boolean pPressed)
|
void |
remove(java.awt.Component pComponent)
Removes a component from the desktop or the content pane. |
void |
removeAll()
Removes all the components from the desktop and the content pane, if attached. |
void |
removeNotify()
|
void |
requestFocus()
|
void |
selectTab(TabEvent pEvent)
Invoked when a tab is the curent selected tab. |
void |
setDisplayMode(JVxDesktopPane.DisplayMode pMode)
Sets the display mode of the content. |
void |
setLayout(java.awt.LayoutManager pLayout)
Sets the layout manager for the content pane. |
void |
setNavigationKeysEnabled(boolean pEnabled)
En- or disables the frame navigation with the keyboard. |
void |
setTabMode(boolean pTabMode)
Sets whether tab mode is active. |
void |
setTabsDragable(boolean pDragable)
Sets the drag option for tabs in tabbed mode. |
| Methods inherited from class javax.swing.JDesktopPane |
|---|
getAccessibleContext, getAllFrames, getAllFramesInLayer, getDesktopManager, getDragMode, getSelectedFrame, getUI, getUIClassID, paramString, remove, selectFrame, setComponentZOrder, setDesktopManager, setDragMode, setSelectedFrame, setUI, updateUI |
| Methods inherited from class javax.swing.JLayeredPane |
|---|
getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, putLayer, setLayer, setLayer, setPosition |
| Methods inherited from class javax.swing.JComponent |
|---|
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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, 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 |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
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, hide, 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, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JVxDesktopPane()
JVxDesktopPane with the JVxDesktopManager.
| Method Detail |
|---|
public void closeTab(TabEvent pEvent)
throws java.lang.Exception
closeTab in interface ITabListenerpEvent - the event
java.lang.Exception - if the close operation is not possiblepublic void deselectTab(TabEvent pEvent)
deselectTab in interface ITabListenerpEvent - the eventpublic void selectTab(TabEvent pEvent)
selectTab in interface ITabListenerpEvent - the eventpublic void moveTab(TabEvent pEvent)
moveTab in interface ITabListenerpEvent - the eventpublic void setLayout(java.awt.LayoutManager pLayout)
setLayout in class java.awt.ContainerpLayout - the layout managerpublic java.awt.LayoutManager getLayout()
getLayout in class java.awt.Containerpublic void requestFocus()
requestFocus in class javax.swing.JComponent
protected void addImpl(java.awt.Component pComponent,
java.lang.Object pConstraints,
int pIndex)
Component to the desktop. If the component is an internal frame,
then it will be added to the destops JLayeredPane otherwise it will
be added to the content pane of the desktop.
addImpl in class javax.swing.JDesktopPanepComponent - the component to be addedpConstraints - constraints an object expressing layout constraints
for this componentpIndex - index the position in the container's list at which to
insert the component, where -1 means append
to the end
java.lang.IllegalArgumentException - if index is invalid
java.lang.IllegalArgumentException - if adding the container's parent
to itself
java.lang.IllegalArgumentException - if comp has been added
to the Container more than once
java.lang.IllegalArgumentException - if adding a window to a containerContainer.add(Component),
Container.add(Component, int),
Container.add(Component, java.lang.Object),
LayoutManager,
LayoutManager2public void removeNotify()
removeNotify in class javax.swing.JComponentpublic void removeAll()
removeAll in class javax.swing.JDesktopPanepublic void remove(java.awt.Component pComponent)
remove in class java.awt.ContainerpComponent - the component to be removed
public boolean processKeyBinding(javax.swing.KeyStroke pStroke,
java.awt.event.KeyEvent pEvent,
int pModifier,
boolean pPressed)
processKeyBinding in class javax.swing.JComponentpublic void setDisplayMode(JVxDesktopPane.DisplayMode pMode)
pMode - the display modepublic JVxDesktopPane.DisplayMode getDisplayMode()
true if the desktop pane is in tab mode,
otherwise falsepublic boolean isTabMode()
true if tab mode is active, false otherwisepublic void setTabMode(boolean pTabMode)
pTabMode - true if tab mode is active, false otherwisepublic void setTabsDragable(boolean pDragable)
pDragable - true to enable the drag option, otherwise falsepublic boolean isTabsDragable()
true if it's possible to drag tabs, false otherwiseprotected void addTab(JVxInternalFrame pFrame)
pFrame - the frameprotected void addFrame(JVxInternalFrame pFrame)
pFrame - the framepublic JVxTabbedPane getTabbedPane()
null if the tab mode is not activepublic void setNavigationKeysEnabled(boolean pEnabled)
pEnabled - true to enable the navigation with the keyboard, otherwise falsepublic boolean isNavigationKeysEnabled()
true if the keyboard navigation is enabled, otherwise false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||