|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.ui.ControlBase
ewe.ui.Control
ewe.ui.PanelSplitter
You should not use this directly except to set properties such as the thickness and arrow direction. Instead use a SplittablePanel to get two empty CellPanels with a splitter between them. Then you can configure how the panel operates using SplittablePanel.setSplitter().
| Field Summary | |
protected Control |
ae
|
Control |
after
This is the control after (to the right or below) the splitter. |
static int |
AFTER
A value used with setOpenCloseTypes(). |
int |
arrowPosition
|
protected Control |
be
|
Control |
before
This is the control before (to the left or above) the splitter. |
static int |
BEFORE
A value used with setOpenCloseTypes(). |
static int |
CLOSED
This is a possible state of the splitter. |
int |
closeType
|
protected Point |
curLoc
|
boolean |
doCloseFirst
If this is true, then a click on the splitter when the splitter is neither opened nor closed will cause it to go into the Closed state. |
protected static ImageBuffer |
dragImage
|
protected boolean |
expandBefore
|
static int |
HIDDEN
A value used with setOpenCloseTypes(). |
static int |
HORIZONTAL
|
static IImage |
leftright
|
protected int |
maxChange
|
static int |
MIN_SIZE
A value used with setOpenCloseTypes(). |
protected int |
minChange
|
protected Point |
myLoc
|
static int |
OPENED
This is a possible state of the splitter. |
int |
openType
|
static int |
PREFERRED_SIZE
A value used with setOpenCloseTypes(). |
protected Graphics |
screen
|
protected Point |
startPoint
|
int |
state
This will either be OPENED, or CLOSED or 0 (indicating neither opened nor closed). |
int |
thickness
|
int |
type
This should be VERTICAL or HORIZONTAL. |
static IImage |
updown
|
static int |
VERTICAL
|
| Fields inherited from class ewe.ui.Control |
_debug, backGround, beforeRemoved, borderColor, borderStyle, borderWidth, children, columns, constraints, DoPaintMethod, dragging, dragResolution, dragTime, exitKeys, fieldTransfer, font, foreGround, haveNativePaint, height, holdDownPause, holdTick, hotKey, image, lastSelected, listeners, maxHeight, maxWidth, menuState, minHeight, minWidth, modifiers, MyClass, name, next, np, parent, penStatus, popupSound, popupSoundClip, preferredHeight, preferredWidth, prev, prompt, promptControl, rows, ss, standardBorder, standardEdge, startDragResolution, tags, tail, text, toolTip, width, x, y |
| Fields inherited from class ewe.ui.ControlBase |
clipItems, clipObject, clipOwner, curPoint, currentPenEvent, debugControl, debugFlag, DidHoldDown, doubleBuffer, doubleClickTime, firstPress, globalDrawFlat, globalEditable, globalEnabled, globalPalmStyle, globalSmallControls, GotPenDown, PenIsOn, pressPoint, TAG_LAST_USER_DATA, TAG_USER_DATA, TAKE_FIRST_PRESS, unnamed, useNativeTextInput |
| Fields inherited from interface ewe.ui.UIConstants |
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_BOTTOM, BF_BOTTOMLEFT, BF_BOTTOMRIGHT, BF_BUTTON, BF_DIAGONAL, BF_DIAGONAL_ENDBOTTOMLEFT, BF_DIAGONAL_ENDBOTTOMRIGHT, BF_DIAGONAL_ENDTOPLEFT, BF_DIAGONAL_ENDTOPRIGHT, BF_EXACT, BF_FLAT, BF_LEFT, BF_MIDDLE, BF_MONO, BF_PALM, BF_RECT, BF_RIGHT, BF_SOFT, BF_SQUARE, BF_TOP, BF_TOPLEFT, BF_TOPRIGHT, EDGE_BUMP, EDGE_ETCHED, EDGE_RAISED, EDGE_SUNKEN |
| Fields inherited from interface ewe.ui.CellConstants |
BORDER, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, FIXEDSIZE, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST |
| Fields inherited from interface ewe.ui.ControlConstants |
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, Disabled, DisablePopupMenu, DisplayOnly, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpKeyEvents, SendUpPenEvents, ShowSIP, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown |
| Fields inherited from interface ewe.fx.ImageRefresher |
KEEP_VISIBLE |
| Method Summary | |
void |
calculateSizes()
Override this to calculate the preferred, minimum and maximum size of your control. |
void |
changeIt(int change)
|
protected void |
checkLimits()
|
void |
doOpenClose(boolean open)
Open or close the splitter. |
void |
doPaint(Graphics g,
Rect area)
|
void |
dragged(DragContext dc)
This is called during the drag operation. |
void |
penClicked(Point where)
Called if the Pen or Mouse button is quickly pressed and released. |
void |
penPressed(Point where)
Called when the Pen or Mouse button is pressed on the control. |
void |
resize(int toWhat)
|
PanelSplitter |
setOpenCloseTypes(int openType,
int closeType)
|
void |
showPreferredSize(Control ex)
|
void |
startDragging(DragContext dc)
This is called to indicate the start of a pen/mouse drag operation. |
void |
stopDragging(DragContext dc)
Called when the pen was released during a drag operation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Field Detail |
public static final int BEFORE
public static final int AFTER
public static final int MIN_SIZE
public static final int PREFERRED_SIZE
public static final int HIDDEN
public int openType
public int closeType
public static final int OPENED
public static final int CLOSED
public int state
public boolean doCloseFirst
public Control before
public Control after
public int type
public static int VERTICAL
public static int HORIZONTAL
public int thickness
public int arrowPosition
public static IImage updown
public static IImage leftright
protected boolean expandBefore
protected static ImageBuffer dragImage
protected Point myLoc
protected Point curLoc
protected Point startPoint
protected Graphics screen
protected int maxChange
protected int minChange
protected Control be
protected Control ae
| Method Detail |
public PanelSplitter setOpenCloseTypes(int openType,
int closeType)
public void doOpenClose(boolean open)
open - if this is true then an open will be performed, otherwise a close will be performed.public void calculateSizes()
Control
calculateSizes in class Control
public void doPaint(Graphics g,
Rect area)
doPaint in class Controlpublic void changeIt(int change)
protected void checkLimits()
public void penPressed(Point where)
ControlWithin this method you can use the Control.currentPenEvent value to find out more about the PenEvent that caused this - including any modifiers (e.g. SHIFT keys) or determine if the left or right mouse button was pressed.
penPressed in class Controlwhere - The point on the Control where the pen was pressed.public void showPreferredSize(Control ex)
public void resize(int toWhat)
public void penClicked(Point where)
ControlWithin this method you can use the Control.currentPenEvent value to find out more about the PenEvent that caused this - including any modifiers (e.g. SHIFT keys) or determine if the left or right mouse button was pressed.
By default this method simply calls the penReleased() method.
penClicked in class Controlwhere - The point on the Control where the pen was clicked.public void startDragging(DragContext dc)
Control
startDragging in class Controldc - A DragContext indicating information about the dragging.public void stopDragging(DragContext dc)
Control
stopDragging in class Controldc - The DragContext for the dragging operation.public void dragged(DragContext dc)
Control
dragged in class Controldc - The DragContext for the dragging operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||