Class View
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- org.flexdock.view.View
-
- All Implemented Interfaces:
java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,java.util.EventListener
,Dockable
,DockingConstants
,DockingListener
,DockingMonitor
public class View extends javax.swing.JComponent implements Dockable, DockingConstants
TheView
class is slightly incompatible withJComponent
. Similar to JFC/Swing top-level containers, aView
contains only a content paneContainer
and aTitlebar
. The content pane should contain all the components displayed by theView
. As a convenienceadd
and its variants,remove(Component)
andsetLayout
have been overridden to forward to thecontentPane
as necessary. This means you can write:view.add(child);
And the child will be added to the contentPane. The content pane will always be non-null. Attempting to set it to null will cause the View to throw an exception. The default content pane will not have a layout manager set.- Author:
- Christopher Butler, Karl Schaefer
- See Also:
JFrame
,JRootPane
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
View.ViewLayout
-
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
-
Nested classes/interfaces inherited from interface org.flexdock.docking.event.DockingListener
DockingListener.Stub
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTION_TOGGLE_NEXT
static java.lang.String
ACTION_TOGGLE_PREVIOUS
protected java.awt.Container
contentPane
protected boolean
contentPaneCheckingEnabled
protected java.util.ArrayList
dockingListeners
protected java.util.ArrayList
dragSources
protected java.util.HashSet
frameDragSources
protected Titlebar
titlepane
static java.lang.String
uiClassID
-
Fields inherited from class javax.swing.JComponent
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
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from interface org.flexdock.docking.Dockable
DOCKABLE_INDICATOR
-
Fields inherited from interface org.flexdock.docking.DockingConstants
ACTIVE_WINDOW, BOTTOM, CENTER, CENTER_REGION, CLOSE_ACTION, DEFAULT_PERSISTENCE_KEY, DOCKING_ID, EAST_REGION, HEAVYWEIGHT_DOCKABLES, HORIZONTAL, LEFT, MOUSE_PRESSED, NORTH_REGION, PERMANENT_FOCUS_OWNER, PIN_ACTION, REGION, RIGHT, SOUTH_REGION, TOP, UNINITIALIZED, UNINITIALIZED_RATIO, UNKNOWN_REGION, UNSPECIFIED_SIBLING_PREF, VERTICAL, WEST_REGION
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAction(java.lang.String action)
void
addAction(javax.swing.Action action)
void
addDockingListener(DockingListener listener)
protected void
addImpl(java.awt.Component comp, java.lang.Object constraints, int index)
protected java.awt.Container
createContentPane()
protected java.awt.LayoutManager
createLayout()
protected Titlebar
createTitlebar()
boolean
dock(Dockable dockable)
Implements the semantics for docking an externalDockable
to thisDockable
and returns aboolean
indicating whether or not the docking operation was successful.boolean
dock(Dockable dockable, java.lang.String relativeRegion)
Implements the semantics for docking an externalDockable
to the specified region of thisDockable
and returns aboolean
indicating whether or not the docking operation was successful.boolean
dock(Dockable dockable, java.lang.String relativeRegion, float ratio)
Implements the semantics for docking an externalDockable
to the specified region of thisDockable
with the specified layout ratio, returning aboolean
indicating whether or not the docking operation was successful.void
dockingCanceled(DockingEvent evt)
Fired when docking of aDockable
is canceled during the operation.void
dockingComplete(DockingEvent evt)
Fired when docking of aDockable
has completed.void
dragStarted(DockingEvent evt)
Fired when the dragging of aDockable
has begun.void
dropStarted(DockingEvent evt)
Fired when the dropping of aDockable
has begun at the release of a drag-operation.javax.swing.AbstractButton
getActionButton(java.lang.String actionName)
java.awt.Component
getComponent()
Returns the Component that is to be dragged and docked.java.awt.Container
getContentPane()
DockingListener[]
getDockingListeners()
DockingPort
getDockingPort()
Returns the DockingPort within which this Dockable is currently docked.DockablePropertySet
getDockingProperties()
Returns aDockablePropertySet
instance associated with thisDockable
.java.util.List
getDragSources()
Returns aList
of theComponents
that are event sources for drag operations.java.util.Set
getFrameDragSources()
Returns aSet
of theComponents
that are used as frame drag sources.static View
getInstance(java.lang.String viewId)
int
getMinimizedConstraint()
java.lang.String
getPersistentId()
Returns aString
identifier that is unique within a JVM instance, but persistent across JVM instances.protected java.lang.String
getPreferredTitlebarUIName()
Dockable
getSibling(java.lang.String region)
javax.swing.Icon
getTabIcon()
java.lang.String
getTabText()
java.lang.String
getTitle()
Titlebar
getTitlebar()
protected java.awt.Component
getTitlePane()
java.lang.String
getUIClassID()
Viewport
getViewport()
ViewProps
getViewProperties()
boolean
isActionBlocked(java.lang.String actionName)
boolean
isActive()
boolean
isActiveStateLocked()
protected boolean
isContentPaneCheckingEnabled()
boolean
isFloating()
boolean
isMinimized()
boolean
isTerritoryBlocked(Dockable dockable, java.lang.String region)
protected java.lang.String
paramString()
void
remove(java.awt.Component comp)
void
removeActions()
void
removeDockingListener(DockingListener listener)
void
setActionBlocked(java.lang.String actionName, boolean blocked)
void
setActive(boolean b)
void
setActiveStateLocked(boolean b)
void
setContentPane(java.awt.Container c)
Sets the content pane for this view.protected void
setContentPaneCheckingEnabled(boolean contentPaneCheckingEnabled)
void
setIcon(java.lang.String imgUri)
void
setIcon(javax.swing.Icon icon)
void
setLayout(java.awt.LayoutManager manager)
Sets theLayoutManager
.void
setTabIcon(javax.swing.Icon icon)
void
setTabText(java.lang.String tabText)
void
setTerritoryBlocked(java.lang.String region, boolean blocked)
void
setTitle(java.lang.String title)
void
setTitle(java.lang.String title, boolean alsoTabText)
void
setTitlebar(Titlebar titlebar)
void
undockingComplete(DockingEvent evt)
void
undockingStarted(DockingEvent evt)
void
updateUI()
-
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, getUI, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, 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
-
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, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, getAccessibleContext, 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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.flexdock.docking.Dockable
addPropertyChangeListener, getClientProperty, putClientProperty, removePropertyChangeListener
-
-
-
-
Field Detail
-
uiClassID
public static final java.lang.String uiClassID
- See Also:
- Constant Field Values
-
ACTION_TOGGLE_NEXT
public static final java.lang.String ACTION_TOGGLE_NEXT
- See Also:
- Constant Field Values
-
ACTION_TOGGLE_PREVIOUS
public static final java.lang.String ACTION_TOGGLE_PREVIOUS
- See Also:
- Constant Field Values
-
titlepane
protected Titlebar titlepane
-
contentPane
protected java.awt.Container contentPane
-
contentPaneCheckingEnabled
protected boolean contentPaneCheckingEnabled
-
dockingListeners
protected java.util.ArrayList dockingListeners
-
dragSources
protected java.util.ArrayList dragSources
-
frameDragSources
protected java.util.HashSet frameDragSources
-
-
Method Detail
-
getInstance
public static View getInstance(java.lang.String viewId)
-
createContentPane
protected java.awt.Container createContentPane()
-
createLayout
protected java.awt.LayoutManager createLayout()
-
createTitlebar
protected Titlebar createTitlebar()
-
getContentPane
public java.awt.Container getContentPane()
-
getTitlebar
public Titlebar getTitlebar()
-
getDockingProperties
public DockablePropertySet getDockingProperties()
Description copied from interface:Dockable
Returns aDockablePropertySet
instance associated with thisDockable
. Developers implementing theDockable
interface may or may not choose to provide their ownDockablePropertySet
implementation for use with this method. A default implementation is supplied by the framework and mostDockable
implementations, including all implementations provided by the framework, will return the defaultDockablePropertySet
via a call toorg.flexdock.docking.props.PropertyManager
. Developers are encouraged to take advantage of this by callingPropertyManager.getDockablePropertySet(this)
.- Specified by:
getDockingProperties
in interfaceDockable
- Returns:
- the
DockablePropertySet
associated with thisDockable
This method may not return anull
reference. - See Also:
DockablePropertySet
,PropertyManager.getDockablePropertySet(Dockable)
-
getViewProperties
public ViewProps getViewProperties()
-
addAction
public void addAction(javax.swing.Action action)
-
addAction
public void addAction(java.lang.String action)
-
removeActions
public void removeActions()
-
setIcon
public void setIcon(javax.swing.Icon icon)
-
setIcon
public void setIcon(java.lang.String imgUri)
-
setContentPane
public void setContentPane(java.awt.Container c) throws java.lang.IllegalArgumentException
Sets the content pane for this view.- Parameters:
c
- the container to use as the content pane.- Throws:
java.lang.IllegalArgumentException
- ifc
isnull
or ifc
is thetitlepane
.- See Also:
titlepane
,getTitlePane()
-
getPreferredTitlebarUIName
protected java.lang.String getPreferredTitlebarUIName()
-
setTitlebar
public void setTitlebar(Titlebar titlebar)
-
getTitlePane
protected java.awt.Component getTitlePane()
-
setTitle
public void setTitle(java.lang.String title)
-
setTitle
public void setTitle(java.lang.String title, boolean alsoTabText)
-
getTitle
public java.lang.String getTitle()
-
updateUI
public void updateUI()
- Overrides:
updateUI
in classjavax.swing.JComponent
-
getUIClassID
public java.lang.String getUIClassID()
- Overrides:
getUIClassID
in classjavax.swing.JComponent
-
addImpl
protected void addImpl(java.awt.Component comp, java.lang.Object constraints, int index)
- Overrides:
addImpl
in classjava.awt.Container
-
remove
public void remove(java.awt.Component comp)
- Overrides:
remove
in classjava.awt.Container
-
getActionButton
public javax.swing.AbstractButton getActionButton(java.lang.String actionName)
-
getComponent
public java.awt.Component getComponent()
Description copied from interface:Dockable
Returns the Component that is to be dragged and docked. This may or may not be included in the list returned bygetDragSources()
.The framework performs indexing on the underlying
Component
. Consequently, this method may not return anull
reference.- Specified by:
getComponent
in interfaceDockable
- Returns:
- the component wrapped by this dockable.
-
getDragSources
public java.util.List getDragSources()
Description copied from interface:Dockable
Returns aList
of theComponents
that are event sources for drag operations. The list may or may not include the Component returned bygetComponent()
.- Specified by:
getDragSources
in interfaceDockable
- Returns:
- a list containing the components that may be used to drag this dockable.
-
getFrameDragSources
public java.util.Set getFrameDragSources()
Description copied from interface:Dockable
Returns aSet
of theComponents
that are used as frame drag sources. When aDockable
is floated into an external frame, that frame may or may not have a titlebar for repositioning. The Components returned by this method will be setup with appropriate event listeners such that dragging them will serve to reposition the containing frame as if they were the frame titlebar. If a Component exists in both the Set returned by this method and the List returned bygetDragSources()
, the "frame reposition" behavior will supercede any "drag-to-dock" behavior while the Dockable is in a floating state.- Specified by:
getFrameDragSources
in interfaceDockable
- Returns:
- a set containing the components that may be used to drag the frame this dockable resides in, if the dockable is floating.
-
getPersistentId
public java.lang.String getPersistentId()
Description copied from interface:Dockable
Returns aString
identifier that is unique within a JVM instance, but persistent across JVM instances. This is used for configuration mangement, allowing the JVM to recognize aDockable
instance within an application instance, persist the ID, and recall it in later application instances. The ID should be unique within an appliation instance so that there are no collisions with otherDockable
instances, but it should also be consistent from JVM to JVM so that the association between aDockable
instance and its ID can be remembered from session to session.The framework performs indexing on the persistent ID. Consequently, this method may not return a
null
reference.- Specified by:
getPersistentId
in interfaceDockable
- Returns:
- the persistence id for this dockable. This id ensures that only one copy of a given dockable will exist.
-
isTerritoryBlocked
public boolean isTerritoryBlocked(Dockable dockable, java.lang.String region)
-
setTerritoryBlocked
public void setTerritoryBlocked(java.lang.String region, boolean blocked)
-
getTabText
public java.lang.String getTabText()
-
setTabText
public void setTabText(java.lang.String tabText)
-
getTabIcon
public javax.swing.Icon getTabIcon()
-
setTabIcon
public void setTabIcon(javax.swing.Icon icon)
-
dock
public boolean dock(Dockable dockable)
Description copied from interface:Dockable
Implements the semantics for docking an externalDockable
to thisDockable
and returns aboolean
indicating whether or not the docking operation was successful.The framework already provides a default implementation for this method through
DockingManager.dock(Dockable dockable, Dockable parent)
. While users are free to provide their own implementation for this method, the recommended approach is to use the default implementation with the following line:return DockingManager.dock(dockable, this);
- Specified by:
dock
in interfaceDockable
- Parameters:
dockable
- theDockable
to dock relative to thisDockable
- Returns:
true
if the docking operation was successful;false
otherwise.- See Also:
Dockable.dock(Dockable, String)
,Dockable.dock(Dockable, String, float)
,DockingManager.dock(Dockable, Dockable)
-
getDockingPort
public DockingPort getDockingPort()
Description copied from interface:Dockable
Returns the DockingPort within which this Dockable is currently docked. If not currently docked, this method will return null.- Specified by:
getDockingPort
in interfaceDockable
- Returns:
- the docking port this dockable resides in, or
null
if the dockable is not currently docked (i.e. in the middle of a drag operation).
-
getSibling
public Dockable getSibling(java.lang.String region)
-
getViewport
public Viewport getViewport()
-
dock
public boolean dock(Dockable dockable, java.lang.String relativeRegion)
Description copied from interface:Dockable
Implements the semantics for docking an externalDockable
to the specified region of thisDockable
and returns aboolean
indicating whether or not the docking operation was successful. If the docking operation results in a split layout, this method should determine an appropriate ratio of available space to allot to the new siblingDockable
.The framework already provides a default implementation for this method through
DockingManager.dock(Dockable dockable, Dockable parent, String region)
. While users are free to provide their own implementation for this method, the recommended approach is to use the default implementation with the following line:return DockingManager.dock(dockable, this, relativeRegion);
- Specified by:
dock
in interfaceDockable
- Parameters:
dockable
- theDockable
to dock relative to thisDockable
relativeRegion
- the docking region into which to dock the specifiedDockable
- Returns:
true
if the docking operation was successful;false
otherwise.- See Also:
Dockable.dock(Dockable, String, float)
,DockingManager.dock(Dockable, Dockable, String)
-
dock
public boolean dock(Dockable dockable, java.lang.String relativeRegion, float ratio)
Description copied from interface:Dockable
Implements the semantics for docking an externalDockable
to the specified region of thisDockable
with the specified layout ratio, returning aboolean
indicating whether or not the docking operation was successful. If the docking operation results in a split layout, this method should use the specifiedratio
to determine the amount of available space to allot to the new siblingDockable
.The framework already provides a default implementation for this method through
DockingManager.dock(Dockable dockable, Dockable parent, String region, float proportion)
. While users are free to provide their own implementation for this method, the recommended approach is to use the default implementation with the following line:return DockingManager.dock(dockable, this, relativeRegion, ratio);
- Specified by:
dock
in interfaceDockable
- Parameters:
dockable
- theDockable
to dock relative to thisDockable
relativeRegion
- the docking region into which to dock the specifiedDockable
ratio
- the proportion of available space in the resulting layout to allot to the new siblingDockable
.- Returns:
true
if the docking operation was successful;false
otherwise.- See Also:
DockingManager.dock(Dockable, Dockable, String, float)
-
setActive
public void setActive(boolean b)
-
isActive
public boolean isActive()
-
setActiveStateLocked
public void setActiveStateLocked(boolean b)
-
isActiveStateLocked
public boolean isActiveStateLocked()
-
isMinimized
public boolean isMinimized()
-
getMinimizedConstraint
public int getMinimizedConstraint()
-
addDockingListener
public void addDockingListener(DockingListener listener)
- Specified by:
addDockingListener
in interfaceDockingMonitor
-
getDockingListeners
public DockingListener[] getDockingListeners()
- Specified by:
getDockingListeners
in interfaceDockingMonitor
-
removeDockingListener
public void removeDockingListener(DockingListener listener)
- Specified by:
removeDockingListener
in interfaceDockingMonitor
-
dockingCanceled
public void dockingCanceled(DockingEvent evt)
Description copied from interface:DockingListener
Fired when docking of aDockable
is canceled during the operation.- Specified by:
dockingCanceled
in interfaceDockingListener
- Parameters:
evt
- theDockingEvent
event which provides the source Dockable, the old DockingPort and the new DockingPort
-
dockingComplete
public void dockingComplete(DockingEvent evt)
Description copied from interface:DockingListener
Fired when docking of aDockable
has completed.- Specified by:
dockingComplete
in interfaceDockingListener
- Parameters:
evt
- theDockingEvent
event which provides the source Dockable, the old DockingPort and the new DockingPort
-
dragStarted
public void dragStarted(DockingEvent evt)
Description copied from interface:DockingListener
Fired when the dragging of aDockable
has begun.- Specified by:
dragStarted
in interfaceDockingListener
- Parameters:
evt
- theDockingEvent
event which provides the source Dockable, the old DockingPort and the new DockingPort
-
dropStarted
public void dropStarted(DockingEvent evt)
Description copied from interface:DockingListener
Fired when the dropping of aDockable
has begun at the release of a drag-operation.- Specified by:
dropStarted
in interfaceDockingListener
- Parameters:
evt
- theDockingEvent
event which provides the source Dockable, the old DockingPort and the new DockingPort
-
undockingComplete
public void undockingComplete(DockingEvent evt)
- Specified by:
undockingComplete
in interfaceDockingListener
-
undockingStarted
public void undockingStarted(DockingEvent evt)
- Specified by:
undockingStarted
in interfaceDockingListener
-
setActionBlocked
public void setActionBlocked(java.lang.String actionName, boolean blocked)
-
isActionBlocked
public boolean isActionBlocked(java.lang.String actionName)
-
isFloating
public boolean isFloating()
-
paramString
protected java.lang.String paramString()
- Overrides:
paramString
in classjavax.swing.JComponent
-
isContentPaneCheckingEnabled
protected boolean isContentPaneCheckingEnabled()
- Returns:
- the contentPaneCheckingEnabled
-
setContentPaneCheckingEnabled
protected void setContentPaneCheckingEnabled(boolean contentPaneCheckingEnabled)
- Parameters:
contentPaneCheckingEnabled
- the contentPaneCheckingEnabled to set
-
setLayout
public void setLayout(java.awt.LayoutManager manager)
Sets theLayoutManager
. Overridden to conditionally forward the call to thecontentPane
.- Overrides:
setLayout
in classjava.awt.Container
- Parameters:
manager
- theLayoutManager
- See Also:
setContentPaneCheckingEnabled(boolean)
-
-