|
||||||||||
| 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.Container
ewe.ui.TableControl
ewe.ui.TreeControl
| Nested Class Summary | |
static class |
TreeControl.ControlTreeNode
|
| Field Summary | |
boolean |
doSelections
|
| Fields inherited from class ewe.ui.TableControl |
allowClipboardOperations, allowDragSelection, autoScrollToVisible, clickClearsItself, clickedFlags, clickMode, cursor, extendedSelection, listMode, model, multiSelect, oldExtendedSelection, oldSelection, penSelectMode, selection |
| Fields inherited from class ewe.ui.Container |
closedFocus, cycleFocus, dontAutoScroll, dontFocusOnChildren |
| 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.IScroll |
Higher, Horizontal, Lower, OPTION_INDICATOR_ONLY, PageHigher, PageLower, ScrollHigher, ScrollLower, TrackTo, Vertical |
| 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 |
| Constructor Summary | |
TreeControl()
|
|
| Method Summary | |
void |
cursorTo(int row,
boolean selectNew)
|
void |
cursorTo(int row,
int col,
boolean selectNew)
|
protected void |
dataAccepted(Control byWho,
Object data,
String action)
This is called either when data that was cut from this control was pasted into another control, OR when data that was dragged from this control is dropped into another control. |
protected void |
dataBeingRemoved(Object data,
DragContext dc)
This tells the control that data is being removed from it either via a cut operation or by a drag operation that is not explicitly a copy operation. |
protected void |
dataTransferCancelled(Object data)
This gets called either when that was cut from this control was not placed into another control (either it was rejected by a paste or a subsequent copy/cut into the clipboard occured before the data was pasted) or a drag and drop was initiated but not completed. |
void |
deleteAndUpdate(MutableTreeNode child,
MutableTreeNode parent)
|
boolean |
deleteSelection()
|
boolean |
doMenu(Point where)
This is a request to display a menu based on the pen being held or the mouse being right clicked on the Control. |
boolean |
getDataToDragAndDrop(DragContext dc)
A quick way to provide DragAndDrop data. |
Point |
getSelectedCell(Point dest)
This returns a single selected cell. |
Object |
getSelection()
|
TreeTableModel |
getTreeTableModel()
|
boolean |
hasSelection()
|
int |
indexOfPoint(int x,
int y)
|
boolean |
noSelection()
|
void |
onKeyEvent(KeyEvent ev)
|
void |
paintLine(int index)
|
void |
penClicked(Point p)
Called if the Pen or Mouse button is quickly pressed and released. |
void |
penDoubleClicked(Point p)
Called if the Pen or Mouse button is double clicked on the Control. |
void |
penPressed(Point p)
Called when the Pen or Mouse button is pressed on the control. |
void |
penReleased(Point p)
Called when the Pen or Mouse button is released on the control. |
boolean |
replaceSelection(Object with)
|
boolean |
scrollToVisible(int index)
|
void |
setData(Object data)
|
void |
startDragging(DragContext dc)
This is called to indicate the start of a pen/mouse drag operation. |
void |
updateInsertion(TreeNode insertedChild)
|
| Methods inherited from class ewe.ui.Container |
_paintChildren, add, addDirectly, containerHasFocus, dismantle, dismantle, findChild, focusFirst, focusFirst, focusOnContainer, focusOnData, getChildren, getChildrenBackwards, getNextKeyFocus, gotFocus, lostFocus, remove, removeAll, repaintDataNow, scrollToVisible, takeFocus, takePromptControl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Methods inherited from interface ewe.ui.ScrollClient |
getServer, setServer |
| Field Detail |
public boolean doSelections
| Constructor Detail |
public TreeControl()
| Method Detail |
public TreeTableModel getTreeTableModel()
public Point getSelectedCell(Point dest)
TableControl
getSelectedCell in class TableControlpublic void setData(Object data)
public boolean scrollToVisible(int index)
public void penPressed(Point p)
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 TableControlpublic boolean getDataToDragAndDrop(DragContext dc)
ControlTo setup the DragContext you should set the dataToDrag, isMultiple and isCopy and (optionally) the dragCursor value.
getDataToDragAndDrop in class Controldc - the DragContext to setup for the drag and drop operation.
public void startDragging(DragContext dc)
Control
startDragging in class TableControlpublic void penDoubleClicked(Point p)
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 penClicked() method.
penDoubleClicked in class TableControlpublic void penClicked(Point p)
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 Controlp - The point on the Control where the pen was clicked.public void penReleased(Point p)
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.
penReleased in class TableControl
public int indexOfPoint(int x,
int y)
public void paintLine(int index)
public boolean doMenu(Point where)
Control
doMenu in class TableControl
public void cursorTo(int row,
int col,
boolean selectNew)
cursorTo in class TableControl
public void cursorTo(int row,
boolean selectNew)
public void onKeyEvent(KeyEvent ev)
onKeyEvent in class TableControlpublic boolean noSelection()
noSelection in interface Selectablepublic boolean replaceSelection(Object with)
replaceSelection in interface Selectablepublic boolean deleteSelection()
deleteSelection in interface Selectablepublic Object getSelection()
getSelection in interface Selectablepublic boolean hasSelection()
hasSelection in interface Selectable
protected void dataBeingRemoved(Object data,
DragContext dc)
Control
dataBeingRemoved in class Controlprotected void dataTransferCancelled(Object data)
Control
dataTransferCancelled in class Controldata - The data that was being transferred. If it is null it indicates
that this Control was a destination for a Drag and Drop operation, but the
operation was cancelled by the user.
protected void dataAccepted(Control byWho,
Object data,
String action)
Control
dataAccepted in class ControlbyWho - The Control that accepted the data.data - The data being transferred.action - This is either "copy" or "move" indicating if the data
is meant to be copied to the other control or moved to the other Control.
public void deleteAndUpdate(MutableTreeNode child,
MutableTreeNode parent)
public void updateInsertion(TreeNode insertedChild)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||