Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.ide.docking
Class DockingParam

java.lang.Object
  extended by oracle.ide.docking.DockingParam

public class DockingParam
extends java.lang.Object

This class is used to specify how to dock a dockable

See Also:
DockStation.dock(oracle.ide.docking.Dockable, oracle.ide.docking.DockingParam)

Constructor Summary
DockingParam()
           
 
Method Summary
 int getAlternateOrientation()
           
 int getExtents()
           
 java.awt.Rectangle getFloatingPosition()
           
 FloatingToolWindow getFloatingToolWindow()
           
 int getOrientation()
           
 Dockable getReference()
           
 boolean isFloating()
           
 java.lang.Boolean isFloatOnTop()
           
 void setExtents(int extents)
          When used in conjunction with setPosition(Dockable, int), allows to place the dockable next, under or above multiple other dockables.
 void setFloating(boolean floating)
           
 void setFloatingPosition(java.awt.Rectangle floatingPosition)
           
 void setFloatingToolWindow(FloatingToolWindow floatingToolWindow)
          This method is used by the docking system when the window is floated.
 void setFloatOnTop(boolean floatOnTop)
           
 void setFloatOnTop(java.lang.Boolean floatOnTop)
          Instructs how to place the floating window.
 void setHosted(DockableWindow hostingDockable, int position)
          Will host the dockable window inside the hostingDockable
 void setPosition(Dockable reference, int position)
          Docks the window relative to another dockable.
 void setPosition(Dockable reference, int position, int alternateAbsolutePosition)
          Same as setPosition(Dockable, int) but if the Dockable is not found, the window will be placed at the alternateAbsolutePosition.
 void setPosition(int orientation)
          Docks the window at the end of one of the 4 docking zone around the editors.
 void setReference(Dockable newReference)
           
 void setTabbedWith(Dockable reference)
          Docks the window together with one (or more) dockable window.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DockingParam

public DockingParam()
Method Detail

setPosition

public void setPosition(int orientation)
Docks the window at the end of one of the 4 docking zone around the editors.

Parameters:
orientation - specifies in which zone to place the dockable Takes values from IdeConstants.NORTH, IdeConstants.SOUTH, IdeConstants.WEST, IdeConstants.EAST or IdeConstants.TABBED

setPosition

public void setPosition(Dockable reference,
                        int position)
Docks the window relative to another dockable.

Parameters:
position - specifies where to place the dockable relative to the reference Takes values from IdeConstants.NORTH, IdeConstants.SOUTH, IdeConstants.WEST, IdeConstants.EAST, IdeConstants.TABBED or IdeConstants.HOSTED

setPosition

public void setPosition(Dockable reference,
                        int position,
                        int alternateAbsolutePosition)
Same as setPosition(Dockable, int) but if the Dockable is not found, the window will be placed at the alternateAbsolutePosition. For example, setPosition(referenceWindow, IdeConstant.SOUTH, IdeConstant.EAST) will try to position the window under referenceWindow but it the window does not exist (addin not enable), the window will be placed in the right panel.

Parameters:
position - specifies where to place the dockable relative to the reference Takes values from IdeConstants.NORTH, IdeConstants.SOUTH, IdeConstants.WEST, IdeConstants.EAST or IdeConstants.TABBED
alternateAbsolutePosition - an alternate position in the main window if reference is not found

setTabbedWith

public void setTabbedWith(Dockable reference)
Docks the window together with one (or more) dockable window.

Parameters:
reference - The other dockable with which your dockable will be attached

setFloatingPosition

public void setFloatingPosition(java.awt.Rectangle floatingPosition)

getFloatingPosition

public java.awt.Rectangle getFloatingPosition()

isFloating

public boolean isFloating()

setFloating

public void setFloating(boolean floating)

setFloatOnTop

public void setFloatOnTop(boolean floatOnTop)

setFloatOnTop

public void setFloatOnTop(java.lang.Boolean floatOnTop)
Instructs how to place the floating window. You can force a window to be always on top (Boolean.TRUE), force it to not always be on top (Boolean.FALSE) or use the user's preference (null)

Parameters:
floatOnTop -

isFloatOnTop

public java.lang.Boolean isFloatOnTop()

getReference

public Dockable getReference()

getOrientation

public int getOrientation()

getAlternateOrientation

public int getAlternateOrientation()

getExtents

public int getExtents()

setExtents

public void setExtents(int extents)
When used in conjunction with setPosition(Dockable, int), allows to place the dockable next, under or above multiple other dockables. For example, setPosition(navigator, EAST) followed by setExtents(2) would place the dockable on the right of both the navigator and the structure window.

Parameters:
extents -

setFloatingToolWindow

public void setFloatingToolWindow(FloatingToolWindow floatingToolWindow)
This method is used by the docking system when the window is floated.

Parameters:
floatingToolWindow -

getFloatingToolWindow

public FloatingToolWindow getFloatingToolWindow()
Returns:
If the dockable has been floated, this method will return the floating container.

setHosted

public void setHosted(DockableWindow hostingDockable,
                      int position)
Will host the dockable window inside the hostingDockable

Parameters:
hostingDockable - The DrawerDockableWindow that will receive the dockable.
position - IdeConstants.BEFORE to add at the beginning or IdeConstants.AFTER to add at the end

setReference

public void setReference(Dockable newReference)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.