|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.jidesoft.swing.SidePane com.jidesoft.docking.AutoHideContainer
public class AutoHideContainer
AutoHideContainer
extends SidePane
which allows DockableFrame
to shrink to one
side of JFrame. In additional to methods in SidePane
, it has several handy methods to allow operate
DockableFrame
quickly since AutoHideContainer
will only deal with
DockableFrame
DockableFrame
,
Serialized FormNested Class Summary | |
---|---|
static interface |
AutoHideContainer.MouseInputCreator
|
Nested classes/interfaces inherited from class com.jidesoft.swing.SidePane |
---|
SidePane.AccessibleSidePane |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
AutoHideContainer(int attachedSide,
DockingManager dockingManager,
AutoHideContainer.MouseInputCreator mouseInputCreator)
Default constructor. |
Method Summary | |
---|---|
void |
addFrame(DockableFrame frame)
Adds the dockable frame to autohide container at the first possible group. |
void |
addFrame(DockableFrame frame,
int groupIndex)
Adds dockable frame to autohide container at a certain group. |
void |
addGroup(FrameContainer container)
Since each group is correspondingly to a FrameContainer , so this method takes a
FrameContainer and convert it to a group and add it to AutoHideContainer . |
void |
addGroup(SidePaneGroup group)
Adds a SidePaneGroup |
void |
dockableFrameActivated(DockableFrameEvent e)
Invoked when a DockableFrame has became activated. |
void |
dockableFrameAdded(DockableFrameEvent e)
Invoked when a DockableFrame has been added to DockingManager. |
void |
dockableFrameAutohidden(DockableFrameEvent e)
Invoked when a DockableFrame has change from other state to autohide showing state. |
void |
dockableFrameAutohideShowing(DockableFrameEvent e)
Invoked when a DockableFrame has change from other state to floating state. |
void |
dockableFrameDeactivated(DockableFrameEvent e)
Invoked when a DockableFrame has became deactivated. |
void |
dockableFrameDocked(DockableFrameEvent e)
Invoked when a DockableFrame has change from other state to docking state. |
void |
dockableFrameFloating(DockableFrameEvent e)
Invoked when a DockableFrame has change from other state to autohide state. |
void |
dockableFrameHidden(DockableFrameEvent e)
Invoked when a DockableFrame has been set invisible. |
void |
dockableFrameMaximized(DockableFrameEvent e)
Invoked when a DockableFrame has became maximized. |
void |
dockableFrameMoved(DockableFrameEvent e)
Invoked when a DockableFrame has been moved without changing is dock mode. |
void |
dockableFrameRemoved(DockableFrameEvent e)
Invoked when a DockableFrame has been removed from DockingManager. |
void |
dockableFrameRestored(DockableFrameEvent e)
Invoked when a DockableFrame has restored from maximized state. |
void |
dockableFrameShown(DockableFrameEvent e)
Invoked when a DockableFrame has been set visible. |
void |
dockableFrameTabHidden(DockableFrameEvent e)
Invoked when a DockableFrame has became invisible in the tabbed pane. |
void |
dockableFrameTabShown(DockableFrameEvent e)
Invoked when a DockableFrame has became visible in the tabbed pane. |
void |
dockableFrameTransferred(DockableFrameEvent e)
Invoked when a DockableFrame was dragged between DockingManager's. |
List<String> |
getAllFrameKeys()
Gets all the dockable frames' key in this autohide container. |
SidePaneGroup |
getGroupForIndex(int index)
|
int |
getGroupIndex(DockableFrame frame)
Finds index of the group that contains the frame. |
SidePaneItem |
getItemForIndex(int index)
|
int |
getSelectedItemIndex(Point p)
|
SidePaneGroup |
getSidePaneGroup(DockableFrame frame)
Finds the group that contains the frame. |
SidePaneItem |
getSidePaneItem(DockableFrame frame)
Finds the item that contains the frame. |
void |
propertyChange(PropertyChangeEvent evt)
This method gets called when a bound property is changed. |
void |
removeFrame(DockableFrame frame)
Removes the frame. |
void |
removeGroup(SidePaneGroup group)
Removes a SidePaneGroup |
Methods inherited from class com.jidesoft.swing.SidePane |
---|
getAccessibleContext, getAttachedSide, getGroups, getToolTipText, getUI, getUIClassID, isRollover, removeGroup, setAttachedSide, setRollover, setUI, updateUI |
Methods inherited from class javax.swing.JPanel |
---|
paramString, setUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AutoHideContainer(int attachedSide, DockingManager dockingManager, AutoHideContainer.MouseInputCreator mouseInputCreator)
attachedSide
- which side of JFrame the container is attached to. The value are SwingConstants.EAST,
SwingConstants.WEST, SwingConstants.NORTH, SwingConstants.SOUTHdockingManager
- DockingManagermouseInputCreator
- the mouse input creatorMethod Detail |
---|
public int getGroupIndex(DockableFrame frame)
frame
- the dockable frame
public SidePaneGroup getSidePaneGroup(DockableFrame frame)
frame
- the dockable frame
public SidePaneItem getSidePaneItem(DockableFrame frame)
frame
- the dockable frame
public int getSelectedItemIndex(Point p)
public SidePaneGroup getGroupForIndex(int index)
public SidePaneItem getItemForIndex(int index)
public void addGroup(SidePaneGroup group)
SidePaneGroup to this component. Do nothing if there is nothing in the group.
- Overrides:
addGroup
in class SidePane
- Parameters:
group
- the group to be added
public void addGroup(FrameContainer container)
FrameContainer
, so this method takes a
FrameContainer
and convert it to a group and add it to AutoHideContainer
.
container
- the frame containerpublic void addFrame(DockableFrame frame, int groupIndex)
frame
- the frame to be addedgroupIndex
- the group indexpublic void addFrame(DockableFrame frame)
frame
- the frame to be addedpublic void removeFrame(DockableFrame frame)
frame
- the frame to be removedpublic void removeGroup(SidePaneGroup group)
SidePaneGroup from this component.
- Overrides:
removeGroup
in class SidePane
- Parameters:
group
- the group to be removed
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
evt
- A PropertyChangeEvent object describing the event source and the property that has changed.public List<String> getAllFrameKeys()
public void dockableFrameAdded(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has been added to DockingManager.
dockableFrameAdded
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameRemoved(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has been removed from DockingManager.
dockableFrameRemoved
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameShown(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has been set visible.
dockableFrameShown
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameHidden(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has been set invisible.
dockableFrameHidden
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameDocked(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has change from other state to docking state.
dockableFrameDocked
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameFloating(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has change from other state to autohide state.
dockableFrameFloating
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameAutohidden(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has change from other state to autohide showing state.
dockableFrameAutohidden
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameAutohideShowing(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has change from other state to floating state.
dockableFrameAutohideShowing
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameActivated(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has became activated.
dockableFrameActivated
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameDeactivated(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has became deactivated.
dockableFrameDeactivated
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameTabShown(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has became visible in the tabbed pane.
dockableFrameTabShown
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameTabHidden(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has became invisible in the tabbed pane.
dockableFrameTabHidden
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameMaximized(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has became maximized.
dockableFrameMaximized
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameRestored(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has restored from maximized state.
dockableFrameRestored
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameTransferred(DockableFrameEvent e)
DockableFrameListener
DockableFrame
was dragged between DockingManager's.
dockableFrameTransferred
in interface DockableFrameListener
e
- DockableFrameEventpublic void dockableFrameMoved(DockableFrameEvent e)
DockableFrameListener
DockableFrame
has been moved without changing is dock mode.
dockableFrameMoved
in interface DockableFrameListener
e
- DockableFrameEvent
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |