com.vlsolutions.swing.docking
public class AutoHidePolicy extends Object
Field Summary | |
---|---|
static int | EXPAND_ON_CLICK A constant for expanding a button on click |
static int | EXPAND_ON_ROLLOVER A constant for expanding a button on rollover |
static String | PROPERTY_DEFAULT_GAP a constant designing the bound property DEFAULT_GAP |
static String | PROPERTY_DEFAULT_HIDE_BORDER a constant designing the bound property DEFAULT_HIDE_BORDER |
static String | PROPERTY_EXPAND_MODE a constant designing the bound property EXPAND_MODE |
static String | PROPERTY_EXPANSION_DURATION a constant designing the bound property EXPANSION_DURATION |
static String | PROPERTY_ROLLOVER_TRIGGER_DELAY a constant designing the bound property ROLLOVER_TRIGGER_DELAY |
Method Summary | |
---|---|
void | addPropertyChangeListener(PropertyChangeListener listener) Hook for property change notification |
void | addPropertyChangeListener(String propertyName, PropertyChangeListener listener) Hook for property change notification |
int | getDefaultGap() Returns the default gap between border components |
DockingConstants.Hide | getDefaultHideBorder() Returns the default hide border (used when not specified in a DockKey) |
int | getExpandMode() Returns the expand mode in use. |
int | getExpansionDuration() Returns the expansion duration (in millis) |
static AutoHidePolicy | getPolicy() Returns the singleton instance of this class |
int | getRolloverTriggerDelay() Returns the rollover trigger delay (in millis)
|
void | removePropertyChangeListener(PropertyChangeListener listener) Remove a property change notification |
void | removePropertyChangeListener(String propertyName, PropertyChangeListener listener) Remove a property change notification |
void | setDefaultGap(int gap) Updates the gap (in pixels) between auto-hide buttons |
void | setDefaultHideBorder(DockingConstants.Hide defaultHideBorder) Updates the default hide border.
|
void | setExpandMode(int expandMode) Updates the expand mode. |
void | setExpansionDuration(int millis) Updates the expansion duration (time in millis) |
void | setRolloverTriggerDelay(int delay) Updates the rollover trigger delay |
Returns: EXPAND_ON_ROLLOVER or EXPAND_ON_CLICK
Default is AutoHideExpandPanel.LEFT;
Parameters: defaultHideBorder values taken from DockingConstants.HIDE_TOP, HIDE_LEFT, HIDE_BOTTOM, HIDE_RIGHT
Parameters: expandMode legal values are EXPAND_ON_ROLLOVER or EXPAND_ON_CLICK
Parameters: delay delay in millis before expanding a Dockable