PROPERTY_AUTOHIDE
public static final String PROPERTY_AUTOHIDE
Property name designating the autohide button selection
PROPERTY_CLOSED
public static final String PROPERTY_CLOSED
Property name designating the close button selection
PROPERTY_DRAGGED
public static final String PROPERTY_DRAGGED
Property name designating a drag gesture beginning
PROPERTY_FLOAT
public static final String PROPERTY_FLOAT
Property name designating the float button selection
PROPERTY_MAXIMIZED
public static final String PROPERTY_MAXIMIZED
Property name designating the maximized button selection
closePopUp
public void closePopUp()
This method is invoked to hide the pop-up that could still be visible
(To avoid a visible pop-up for an invisible component)
endDragComponent
public void endDragComponent(boolean dropped)
notifies the source when the drag operation has ended (by a drop or cancelled)
- endDragComponent in interface DockableDragSource
getCloseButton
public JButton getCloseButton()
getDesktop
public DockingDesktop getDesktop()
Returns the desktop associated to this title bar, if one has been registered
with #installDocking(DockingDesktop), or null.
getFloatButton
public JButton getFloatButton()
returns the button used for floating (detach) the view.
getHideOrDockButton
public JButton getHideOrDockButton()
returns the button used for hiding or docking the view.
As hiding and docking are mutually exclusive, the same button is used for both purposes
getMaximizeOrRestoreButton
public JButton getMaximizeOrRestoreButton()
returns the button used for maximizing or restoring the view.
As those operations are mutually exclusive, the same button is used for both purposes
getTitleLabel
public JLabel getTitleLabel()
Returns the label used to display the dockkey name.
Shouldn't be used to update the title : the best way is to update the
DockKey (property listener ensure the labels and buttons stay in sync).
getUIClassID
public String getUIClassID()
initAutoHidePopUp
protected void initAutoHidePopUp(JPopupMenu popup)
initDockedPopUp
protected void initDockedPopUp(JPopupMenu popup)
initFloatingPopUp
protected void initFloatingPopUp(JPopupMenu popup)
Init the popup displayed as the title bar contextual menu
initMaximizedPopUp
protected void initMaximizedPopUp(JPopupMenu popup)
Init the popup displayed as the title bar contextual menu
isActive
public boolean isActive()
Returns true if the dockable is the currently active one.
There is at most one active dockable for a dekstop, and it there is one,
it is the one which contains the keybord focused component.
layoutTitleBar
protected void layoutTitleBar()
called to build the title bar
removeNotify
public void removeNotify()
Overriden as a means to unregister internal listeners, do not call directly
setActive
public void setActive(boolean active)
Updates the active property.
A title bar is active when the dockable it is for is ancestor of
the keybord focused component.
setDockable
public void setDockable(Dockable dockable)
Changes the dockable this title bar is for
toString
public String toString()
Returns a readeable String representing this title bar