|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.docking.DockContext
public class DockContext
A object that stores state, mode and size information of a DockableFrame.
Field Summary | |
---|---|
static int |
DOCK_SIDE_ALL
|
static int |
DOCK_SIDE_ALL_AND_CENTER
|
static int |
DOCK_SIDE_CENTER
|
static int |
DOCK_SIDE_EAST
|
static int |
DOCK_SIDE_HORIZONTAL
|
static int |
DOCK_SIDE_NORTH
Which side of the frame the window can swing to and is docking to. |
static int |
DOCK_SIDE_SOUTH
|
static int |
DOCK_SIDE_UNKNOWN
|
static int |
DOCK_SIDE_VERTICAL
|
static int |
DOCK_SIDE_WEST
|
static int |
MODE_ALL
|
static int |
MODE_AUTOHIDABLE
Autohide means the window is docked to a side but still is above any other components, like a sliding door. |
static int |
MODE_DOCKABLE
Dockable means the window can be docked inside the main window. |
static int |
MODE_FLOATABLE
Floatable means the window can be floated in a floating container. |
static int |
MODE_HIDABLE
Hidable means the window can be hided. |
static String[] |
SIDE_NAMES
|
static int |
STATE_AUTOHIDE
|
static int |
STATE_AUTOHIDE_SHOWING
|
static int |
STATE_FLOATING
|
static int |
STATE_FRAMEDOCKED
|
static int |
STATE_HIDDEN
There are six states for each window. |
static String[] |
STATE_NAMES
|
Constructor Summary | |
---|---|
DockContext()
Default constructor. |
Method Summary | |
---|---|
Object |
clone()
Clones a DockContext . |
int |
getAutohideHeight()
|
com.jidesoft.docking.PreviousState |
getAutohidePreviousState()
|
int |
getAutohideWidth()
|
com.jidesoft.docking.PreviousState |
getAvailablePreviousState()
|
int |
getCanMode()
|
com.jidesoft.docking.PreviousState |
getClosePreviousState()
|
int |
getCurrentDockSide()
|
int |
getCurrentMode()
Gets current state. |
int |
getDockedHeight()
|
int |
getDockedWidth()
|
int |
getDockID()
|
com.jidesoft.docking.PreviousState |
getDockPreviousState()
|
static String |
getDockSideName(int side)
|
com.jidesoft.docking.PreviousState |
getFloatPreviousState()
|
com.jidesoft.docking.PreviousState |
getHiddenPreviousState()
|
int |
getInitIndex()
Gets initial index. |
int |
getInitMode()
Gets initial state. |
int |
getInitSide()
Gets initial side. |
com.jidesoft.docking.PreviousState |
getMaximizedPreviousState()
|
static String |
getStateName(int mode)
|
Rectangle |
getUndockedBounds()
|
boolean |
isAutohidable()
|
boolean |
isAutohide()
Checks if it's in autohide state. |
boolean |
isAutohideShowing()
Checks if it's in autohide showing state. |
boolean |
isAvailable()
|
boolean |
isDockable()
|
boolean |
isDocked()
Checks if it's in frame docked state. |
boolean |
isFloatable()
|
boolean |
isFloated()
Checks if it's in floating state. |
boolean |
isHidable()
|
boolean |
isHidden()
Checks if it's in hidden state. |
boolean |
isInitPosition()
|
void |
resetDockID(DockingManager dockingManager)
|
void |
setAutohidable(boolean autohidable)
|
void |
setAutohideHeight(int height)
|
void |
setAutohidePreviousState(com.jidesoft.docking.PreviousState autohidePreviousState)
|
void |
setAutohideWidth(int width)
|
void |
setAvailable(boolean available)
|
void |
setAvailablePreviousState(com.jidesoft.docking.PreviousState availablePreviousState)
|
void |
setCanMode(int canMode)
|
void |
setClosePreviousState(com.jidesoft.docking.PreviousState closePreviousState)
|
void |
setCurrentDockSide(int currentDockSide)
|
void |
setCurrentMode(int currentMode)
Sets current state. |
void |
setDockable(boolean dockable)
|
void |
setDockedHeight(int dockedHeight)
|
void |
setDockedWidth(int dockedWidth)
|
void |
setDockID(DockingManager dockingManager,
int dockID)
|
void |
setDockPreviousState(com.jidesoft.docking.PreviousState dockPreviousState)
|
void |
setFloatable(boolean floatable)
|
void |
setFloatPreviousState(com.jidesoft.docking.PreviousState floatPreviousState)
|
void |
setHidable(boolean hidable)
|
void |
setHiddenPreviousState(com.jidesoft.docking.PreviousState hiddenPreviousState)
|
void |
setInitIndex(int initIndex)
Sets initial index. |
void |
setInitMode(int initMode)
Sets the initial state. |
void |
setInitPosition(boolean initPosition)
|
void |
setInitSide(int initSide)
Sets the initial side. |
void |
setMaximizedPreviousState(com.jidesoft.docking.PreviousState maximizePreviousState)
|
void |
setUndockedBounds(Rectangle bound)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MODE_FLOATABLE
public static final int MODE_AUTOHIDABLE
public static final int MODE_DOCKABLE
public static final int MODE_HIDABLE
public static final int MODE_ALL
public static final int STATE_HIDDEN
public static final int STATE_FLOATING
public static final int STATE_AUTOHIDE
public static final int STATE_AUTOHIDE_SHOWING
public static final int STATE_FRAMEDOCKED
public static final String[] STATE_NAMES
public static final int DOCK_SIDE_NORTH
public static final int DOCK_SIDE_SOUTH
public static final int DOCK_SIDE_EAST
public static final int DOCK_SIDE_WEST
public static final int DOCK_SIDE_CENTER
public static final int DOCK_SIDE_UNKNOWN
public static final int DOCK_SIDE_HORIZONTAL
public static final int DOCK_SIDE_VERTICAL
public static final int DOCK_SIDE_ALL
public static final int DOCK_SIDE_ALL_AND_CENTER
public static final String[] SIDE_NAMES
Constructor Detail |
---|
public DockContext()
Method Detail |
---|
public int getInitMode()
public void setInitMode(int initMode)
DockContext
. They are
STATE_HIDDEN
, STATE_FLOATING
, STATE_AUTOHIDE
and
STATE_FRAMEDOCKED
. It also supports a few negative value such as STATE_HIDDEN -
STATE_FLOATING
, STATE_HIDDEN - STATE_AUTOHIDE
and STATE_HIDDEN -
STATE_FRAMEDOCKED
. In those nagative cases, the frame will initially be hidden. But when showFrame is
called on this frame, it will use the corrponding mode to show the frame. For example, if initMode is set to
STATE_HIDDEN - STATE_FLOATING
, the frame will initially be hidden. When showFrame is called, the
frame will be floated.
initMode
- initial statepublic int getCurrentMode()
public boolean isHidden()
public boolean isDocked()
public boolean isFloated()
public boolean isAutohide()
public boolean isAutohideShowing()
public void setCurrentMode(int currentMode)
currentMode
- current statepublic int getInitSide()
public void setInitSide(int initSide)
DOCK_SIDE_EAST
, DOCK_SIDE_WEST
, DOCK_SIDE_SOUTH
, DOCK_SIDE_NORTH
, and DOCK_SIDE_CENTER
. If you ever use DOCK_SIDE_CENTER
, dockable frame will appear in workspace area thus you need to cal Workspace.setAcceptDockableFrame(boolean)
and set it to true. If so, you shouldn't add any other arbitrary
components to workspace area.
initSide
- the initial sidepublic boolean isInitPosition()
public void setInitPosition(boolean initPosition)
public int getInitIndex()
public void setInitIndex(int initIndex)
initIndex
- the initial indexpublic int getCurrentDockSide()
public void setCurrentDockSide(int currentDockSide)
public Rectangle getUndockedBounds()
public void setUndockedBounds(Rectangle bound)
public int getAutohideWidth()
public void setAutohideWidth(int width)
public int getAutohideHeight()
public void setAutohideHeight(int height)
public int getDockedWidth()
public void setDockedWidth(int dockedWidth)
public int getDockedHeight()
public void setDockedHeight(int dockedHeight)
public com.jidesoft.docking.PreviousState getHiddenPreviousState()
public void setHiddenPreviousState(com.jidesoft.docking.PreviousState hiddenPreviousState)
public com.jidesoft.docking.PreviousState getClosePreviousState()
public void setClosePreviousState(com.jidesoft.docking.PreviousState closePreviousState)
public com.jidesoft.docking.PreviousState getDockPreviousState()
public void setDockPreviousState(com.jidesoft.docking.PreviousState dockPreviousState)
public com.jidesoft.docking.PreviousState getFloatPreviousState()
public void setFloatPreviousState(com.jidesoft.docking.PreviousState floatPreviousState)
public com.jidesoft.docking.PreviousState getAutohidePreviousState()
public void setAutohidePreviousState(com.jidesoft.docking.PreviousState autohidePreviousState)
public static String getDockSideName(int side)
public static String getStateName(int mode)
public int getDockID()
public void setDockID(DockingManager dockingManager, int dockID)
public void resetDockID(DockingManager dockingManager)
public int getCanMode()
public void setCanMode(int canMode)
public boolean isDockable()
public void setDockable(boolean dockable)
public boolean isHidable()
public void setHidable(boolean hidable)
public boolean isAutohidable()
public void setAutohidable(boolean autohidable)
public boolean isFloatable()
public void setFloatable(boolean floatable)
public com.jidesoft.docking.PreviousState getAvailablePreviousState()
public void setAvailablePreviousState(com.jidesoft.docking.PreviousState availablePreviousState)
public boolean isAvailable()
public void setAvailable(boolean available)
public com.jidesoft.docking.PreviousState getMaximizedPreviousState()
public void setMaximizedPreviousState(com.jidesoft.docking.PreviousState maximizePreviousState)
public Object clone() throws CloneNotSupportedException
DockContext
. Not all information are cloned. The information closed are initSide, initMode,
initIndex, undockedBounds, autohideHeight, autohideWidth, dockedHeight, dockedWidth, currentMode, canMode, and
currentDockSide. All other informations are ignored.
clone
in class Object
DockContext
.
CloneNotSupportedException
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |