|
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.action.DockableBarContext
public class DockableBarContext
A object that stores state, mode and size information of a DockableBar.
Field Summary | |
---|---|
static int |
DOCK_SIDE_ALL
|
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_VERTICAL
|
static int |
DOCK_SIDE_WEST
|
static String[] |
SIDE_NAMES
Which side of the frame the dockable bar is docking to. |
static int |
STATE_FLOATING
|
static int |
STATE_HIDDEN
There are 4 states for each Dockable. |
static int |
STATE_HORI_DOCKED
|
static String[] |
STATE_NAMES
|
static int |
STATE_VERT_DOCKED
|
Constructor Summary | |
---|---|
DockableBarContext()
Default constructor. |
Method Summary | |
---|---|
com.jidesoft.action.PreviousState |
getAvailablePreviousState()
Gets the state before the bar was made unavailable. |
com.jidesoft.action.PreviousState |
getClosePreviousState()
|
int |
getCurrentDockSide()
|
int |
getCurrentMode()
Gets current state. |
int |
getDockedHeight()
|
int |
getDockedWidth()
|
int |
getDockID()
|
com.jidesoft.action.PreviousState |
getDockPreviousState()
|
static String |
getDockSideName(int side)
|
com.jidesoft.action.PreviousState |
getFloatPreviousState()
|
com.jidesoft.action.PreviousState |
getHiddenPreviousState()
|
int |
getInitIndex()
Gets initial index. |
int |
getInitMode()
Gets initial state. |
int |
getInitSide()
Gets initial side. |
int |
getInitSubindex()
Gets initial spandex. |
Rectangle |
getUndockedBounds()
|
boolean |
isAvailable()
|
boolean |
isFloating()
Checks if it's in floating state. |
boolean |
isHidden()
Checks if it's in hidden state. |
boolean |
isHoriDocked()
Checks if it's in horizontally docked state. |
boolean |
isInitPosition()
|
boolean |
isVertDocked()
Checks if it's in vertically docked state. |
void |
resetDockID()
|
void |
setAvailable(boolean available)
Impose the availability status. |
void |
setAvailablePreviousState(com.jidesoft.action.PreviousState availablePreviousState)
Sets the previous state before the bar is made unavailable. |
void |
setClosePreviousState(com.jidesoft.action.PreviousState closePreviousState)
|
void |
setCurrentDockSide(int currentDockSide)
|
void |
setCurrentMode(int currentMode)
Sets current state. |
void |
setDockedHeight(int dockedHeight)
|
void |
setDockedWidth(int dockedWidth)
|
void |
setDockID(int dockID)
|
void |
setDockPreviousState(com.jidesoft.action.PreviousState dockPreviousState)
|
void |
setFloatPreviousState(com.jidesoft.action.PreviousState floatPreviousState)
|
void |
setHiddenPreviousState(com.jidesoft.action.PreviousState hiddenPreviousState)
|
void |
setInitIndex(int initIndex)
Sets initial index. |
void |
setInitMode(int initMode)
Sets initial state. |
void |
setInitPosition(boolean initPosition)
|
void |
setInitSide(int initSide)
|
void |
setInitSubindex(int initSideSubindex)
Sets initial subindex. |
void |
setUndockedBounds(Rectangle bound)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STATE_HIDDEN
public static final int STATE_FLOATING
public static final int STATE_HORI_DOCKED
public static final int STATE_VERT_DOCKED
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_HORIZONTAL
public static final int DOCK_SIDE_VERTICAL
public static final int DOCK_SIDE_ALL
public static final String[] SIDE_NAMES
Constructor Detail |
---|
public DockableBarContext()
Method Detail |
---|
public int getInitMode()
public void setInitMode(int initMode)
initMode
- initial statepublic int getCurrentMode()
public void setCurrentMode(int currentMode)
currentMode
- current statepublic boolean isHidden()
public boolean isHoriDocked()
public boolean isVertDocked()
public boolean isFloating()
public int getInitSide()
public void setInitSide(int initSide)
public boolean isInitPosition()
public void setInitPosition(boolean initPosition)
public int getInitIndex()
public void setInitIndex(int initIndex)
initIndex
- the initial indexpublic int getInitSubindex()
public void setInitSubindex(int initSideSubindex)
initSideSubindex
- the initial subindexpublic int getCurrentDockSide()
public void setCurrentDockSide(int currentDockSide)
public Rectangle getUndockedBounds()
public void setUndockedBounds(Rectangle bound)
public int getDockedWidth()
public void setDockedWidth(int dockedWidth)
public int getDockedHeight()
public void setDockedHeight(int dockedHeight)
public com.jidesoft.action.PreviousState getHiddenPreviousState()
public void setHiddenPreviousState(com.jidesoft.action.PreviousState hiddenPreviousState)
public com.jidesoft.action.PreviousState getClosePreviousState()
public void setClosePreviousState(com.jidesoft.action.PreviousState closePreviousState)
public com.jidesoft.action.PreviousState getDockPreviousState()
public void setDockPreviousState(com.jidesoft.action.PreviousState dockPreviousState)
public com.jidesoft.action.PreviousState getFloatPreviousState()
public void setFloatPreviousState(com.jidesoft.action.PreviousState floatPreviousState)
public static String getDockSideName(int side)
public int getDockID()
public void setDockID(int dockID)
public void resetDockID()
public boolean isAvailable()
public void setAvailable(boolean available)
available
- True if the bar is available, false otherwise.public com.jidesoft.action.PreviousState getAvailablePreviousState()
public void setAvailablePreviousState(com.jidesoft.action.PreviousState availablePreviousState)
availablePreviousState
-
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |