com.vlsolutions.swing.docking
public class AutoHideExpandPanel extends JPanel implements SingleDockableContainer
Auto-Hide / Auto-Expand feature is a means to save space of screen replacing a Dockable by a Button on one of the Desktop borders.
When the user clicks on the button or his mouse rolls over it, the component is shown (with an expansion animation) as if it was coming from behind the button's border.
UNKNOWN: 2005/10/06 Lilian Chamontin : protected access to the exansion timer that might be null when AutoHidePolicy is EXPAND_ON_CLICK 2005/11/01 Lilian Chamontin : enhanced timer management to auto-collaspe the panel when mouse out of bounds 2005/12/08 Lilian Chamontin : updated the order of component insertion for JDIC support. 2006/12/19 Lilian Chamontin : fixed a memory leak issue. 2007/01/08 Lilian Chamontin : updated to use the new titlebar factory method
Field Summary | |
---|---|
static String | PROPERTY_EXPANDED Constant for the Expanded property (a bound property) |
static String | uiClassID |
Constructor Summary | |
---|---|
AutoHideExpandPanel() |
Method Summary | |
---|---|
void | clear() Clears the state of this expand panel.
|
void | collapse() Collapse the expand panel (making it unvisible) |
protected DockViewTitleBar | createTitleBar() creates the shared title bar for all expanded panels |
void | expand() Expands the currently selected button |
JPanel | getBottomDragger() Returns the component used to modify the expand panel size when expanded from the top |
Dockable | getDockable() |
JPanel | getLeftDragger() Returns the component used to modify the expand panel size when expanded from the right |
JPanel | getRightDragger() Returns the component used to modify the expand panel size when expanded from the right |
DockViewTitleBar | getTitleBar() |
JPanel | getTopDragger() Returns the component used to modify the expand panel size when expanded from the bottom |
String | getUIClassID() |
protected void | initBorders() Installs borders used to drag the expand panel around |
void | installDocking(DockingDesktop desktop) |
boolean | isActive() Returns true if this panel is the ancestor of the focused component |
boolean | isOptimizedDrawingEnabled() |
void | remove(Dockable dockable) Removes a dockable (if it was the currently expanded one) |
void | resetBorders() Creates the default borders for the expand panel |
void | select(AutoHideButton btn) Selects a button (may collapse a prevoiusly selected button) |
boolean | shouldCollapse() Returns true if this panel agrees to beeing hidden.
|
void | uninstallDocking(DockingDesktop desktop) |
This is useful when re-installing a desktop from readXml (for example, it resets dockable expand sizes)
During drag operations (resizing), some mouseEnter/mouseExit events can be lost. In that case, the desktop relies on this method to request collaping or not.