org.noos.xing.mydoggy
Interface DockedTypeDescriptor

All Superinterfaces:
Observable, ToolWindowTypeDescriptor

public interface DockedTypeDescriptor
extends ToolWindowTypeDescriptor

This interface is used to modify the behaviours of DOCKED type.

Since:
1.0.0
Author:
Angelo De Caro (angelo.decaro@gmail.com)
See Also:
ToolWindowType.DOCKED

Method Summary
 int getDockLength()
          Returns the dock panel length.
 int getMinimumDockLength()
          Returns the minimum dock length used during toolwindow showing.
 JMenu getToolsMenu()
          The user can add customized menu items to the popup menu of the representative anchor button of this tool using the result of this method invocation.
 ToolWindowActionHandler getToolWindowActionHandler()
          Returns the ToolWindowActionHandler instance or null if it is not present.
 boolean isPopupMenuEnabled()
          Indicates whether the popup menu of the representative anchor button of the tool is enabled.
 void setDockLength(int dockLength)
          Sets the width or heigth, based on anchor of tool window, of the dock panel.
 void setMinimumDockLength(int minimumDockLength)
          Sets the minimum dock length.
 void setPopupMenuEnabled(boolean enabled)
          Specifies whether the popup menu of the representative anchor button of the tool should be enabled.
 void setToolWindowActionHandler(ToolWindowActionHandler toolWindowActionHandler)
          Sets the ToolWindowActionHandler to this descriptor.
 
Methods inherited from interface org.noos.xing.mydoggy.ToolWindowTypeDescriptor
addToolWindowAction, addToolWindowAction, getToolWindowAction, getToolWindowActions, getType, isAnimating, isAutoHide, isEnabled, isHideRepresentativeButtonOnVisible, isIdVisibleOnTitleBar, isTitleBarButtonsVisible, isTitleBarVisible, removeToolWindowAction, setAnimating, setAutoHide, setEnabled, setHideRepresentativeButtonOnVisible, setIdVisibleOnTitleBar, setTitleBarButtonsVisible, setTitleBarVisible
 
Methods inherited from interface org.noos.xing.mydoggy.Observable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 

Method Detail

setPopupMenuEnabled

void setPopupMenuEnabled(boolean enabled)
Specifies whether the popup menu of the representative anchor button of the tool should be enabled.

Parameters:
enabled - true to enable popup menu. false otherwise.
Since:
1.0.0
See Also:
ToolWindowType, isPopupMenuEnabled(), ToolWindowAnchor

isPopupMenuEnabled

boolean isPopupMenuEnabled()
Indicates whether the popup menu of the representative anchor button of the tool is enabled.

Returns:
true if the popup menu is enabled; false otherwise.
Since:
1.0.0
See Also:
setPopupMenuEnabled(boolean), ToolWindowAnchor

getToolsMenu

JMenu getToolsMenu()
The user can add customized menu items to the popup menu of the representative anchor button of this tool using the result of this method invocation.

Returns:
the menu where to add new menu items.
Since:
1.0.0
See Also:
ToolWindowAnchor

setDockLength

void setDockLength(int dockLength)
Sets the width or heigth, based on anchor of tool window, of the dock panel. This value is used by DOCKED and SLIDING tool window type.

Parameters:
dockLength -
Since:
1.0.0
See Also:
getDockLength()

getDockLength

int getDockLength()
Returns the dock panel length.

Returns:
the dock panel length.
Since:
1.0.0
See Also:
setDockLength(int)

setMinimumDockLength

void setMinimumDockLength(int minimumDockLength)
Sets the minimum dock length. This information is used every time a toolwindow (in docked or sliding mode) is shown.

Parameters:
minimumDockLength - the minimum dock length.
Since:
1.4.2

getMinimumDockLength

int getMinimumDockLength()
Returns the minimum dock length used during toolwindow showing.

Returns:
the minimum dock length.
Since:
1.4.2

getToolWindowActionHandler

ToolWindowActionHandler getToolWindowActionHandler()
Returns the ToolWindowActionHandler instance or null if it is not present.

Returns:
the ToolWindowActionHandler instance.
Since:
1.2.0
See Also:
ToolWindowActionHandler, setToolWindowActionHandler(ToolWindowActionHandler)

setToolWindowActionHandler

void setToolWindowActionHandler(ToolWindowActionHandler toolWindowActionHandler)
Sets the ToolWindowActionHandler to this descriptor.

Parameters:
toolWindowActionHandler - the handler.
Since:
1.2.0
See Also:
ToolWindowActionHandler, getToolWindowActionHandler(), getToolWindowActionHandler()


Copyright © 2012. All Rights Reserved.