|
||||||||||
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 |
---|
Nested classes/interfaces inherited from class javax.swing.JDesktopPane |
---|
JDesktopPane.AccessibleJDesktopPane |
Nested classes/interfaces inherited from class javax.swing.JLayeredPane |
---|
JLayeredPane.AccessibleJLayeredPane |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, 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 |
addImpl(Component pComponent,
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. |
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()
Returns if the desktop pane is in tab mode. |
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(KeyStroke pStroke,
KeyEvent pEvent,
int pModifier,
boolean pPressed)
|
void |
remove(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 |
selectTab(TabEvent pEvent)
Invoked when a tab is the curent selected tab. |
void |
setLayout(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 the tabs display mode of the desktop. |
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 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 Exception
closeTab
in interface ITabListener
pEvent
- the event
Exception
- if the close operation is not possiblepublic void deselectTab(TabEvent pEvent)
deselectTab
in interface ITabListener
pEvent
- the eventpublic void selectTab(TabEvent pEvent)
selectTab
in interface ITabListener
pEvent
- the eventpublic void moveTab(TabEvent pEvent)
moveTab
in interface ITabListener
pEvent
- the eventpublic void setLayout(LayoutManager pLayout)
setLayout
in class Container
pLayout
- the layout managerpublic LayoutManager getLayout()
getLayout
in class Container
protected void addImpl(Component pComponent, 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 JDesktopPane
pComponent
- 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
IllegalArgumentException
- if index
is invalid
IllegalArgumentException
- if adding the container's parent
to itself
IllegalArgumentException
- if comp
has been added
to the Container
more than once
IllegalArgumentException
- if adding a window to a containerContainer.add(Component)
,
Container.add(Component, int)
,
Container.add(Component, java.lang.Object)
,
LayoutManager
,
LayoutManager2
public void removeNotify()
removeNotify
in class JComponent
public void removeAll()
removeAll
in class JDesktopPane
public void remove(Component pComponent)
remove
in class Container
pComponent
- the component to be removedpublic boolean processKeyBinding(KeyStroke pStroke, KeyEvent pEvent, int pModifier, boolean pPressed)
processKeyBinding
in class JComponent
public void setTabMode(boolean pTabMode)
pTabMode
- true
to display internal frames as tabs;
false
to display internal frames as windowspublic boolean isTabMode()
true
if the desktop pane is in tab mode,
otherwise false
public void setTabsDragable(boolean pDragable)
pDragable
- true
to enable the drag option, otherwise false
public boolean isTabsDragable()
true
if it's possible to drag tabs, false
otherwiseprotected void addTab(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 false
public 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 |