|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vlsolutions.swing.docking.AutoHidePolicy
public class AutoHidePolicy
This class holds preferences on default autohiding behaviour.
AutoHideButtonPanel
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 java.lang.String |
PROPERTY_DEFAULT_GAP
a constant designing the bound property DEFAULT_GAP |
static java.lang.String |
PROPERTY_DEFAULT_HIDE_BORDER
a constant designing the bound property DEFAULT_HIDE_BORDER |
static java.lang.String |
PROPERTY_EXPAND_MODE
a constant designing the bound property EXPAND_MODE |
static java.lang.String |
PROPERTY_EXPANSION_DURATION
a constant designing the bound property EXPANSION_DURATION |
static java.lang.String |
PROPERTY_ROLLOVER_TRIGGER_DELAY
a constant designing the bound property ROLLOVER_TRIGGER_DELAY |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Hook for property change notification |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.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(java.beans.PropertyChangeListener listener)
Remove a property change notification |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EXPAND_ON_ROLLOVER
public static final int EXPAND_ON_CLICK
public static final java.lang.String PROPERTY_DEFAULT_HIDE_BORDER
public static final java.lang.String PROPERTY_DEFAULT_GAP
public static final java.lang.String PROPERTY_EXPAND_MODE
public static final java.lang.String PROPERTY_ROLLOVER_TRIGGER_DELAY
public static final java.lang.String PROPERTY_EXPANSION_DURATION
Method Detail |
---|
public void setDefaultHideBorder(DockingConstants.Hide defaultHideBorder)
Default is AutoHideExpandPanel.LEFT;
defaultHideBorder
- values taken from DockingConstants.HIDE_TOP, HIDE_LEFT, HIDE_BOTTOM, HIDE_RIGHTpublic DockingConstants.Hide getDefaultHideBorder()
public int getDefaultGap()
public void setDefaultGap(int gap)
public static AutoHidePolicy getPolicy()
public int getExpandMode()
public void setExpandMode(int expandMode)
expandMode
- legal values are EXPAND_ON_ROLLOVER or EXPAND_ON_CLICKpublic int getRolloverTriggerDelay()
public void setRolloverTriggerDelay(int delay)
delay
- delay in millis before expanding a Dockablepublic int getExpansionDuration()
public void setExpansionDuration(int millis)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |