public abstract class CellBehaviorBase<T extends Cell> extends BehaviorBase<T>
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ANCHOR_PROPERTY_KEY
*
Private static implementation *
*
|
private static java.lang.String |
IS_DEFAULT_ANCHOR_KEY |
private boolean |
latePress
*
Private fields *
*
|
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS, TRAVERSE_DOWN, TRAVERSE_LEFT, TRAVERSE_NEXT, TRAVERSE_PREVIOUS, TRAVERSE_RIGHT, TRAVERSE_UP
Constructor and Description |
---|
CellBehaviorBase(T control,
java.util.List<KeyBinding> bindings)
*
Constructors *
*
|
Modifier and Type | Method and Description |
---|---|
protected void |
doSelect(double x,
double y,
MouseButton button,
int clickCount,
boolean shiftDown,
boolean shortcutDown)
*
Private implementation *
*
|
protected abstract void |
edit(T cell) |
static <T> T |
getAnchor(Control control,
T defaultResponse) |
protected abstract Control |
getCellContainer() |
protected abstract FocusModel<?> |
getFocusModel() |
protected int |
getIndex()
*
Public API *
*
|
protected abstract MultipleSelectionModel<?> |
getSelectionModel() |
protected void |
handleClicks(MouseButton button,
int clickCount,
boolean isAlreadySelected) |
protected boolean |
handleDisclosureNode(double x,
double y) |
private static boolean |
hasAnchor(Control control) |
static boolean |
hasDefaultAnchor(Control control) |
static boolean |
hasNonDefaultAnchor(Control control) |
protected boolean |
isClickPositionValid(double x,
double y) |
protected boolean |
isSelected() |
void |
mouseDragged(MouseEvent e)
Invoked by a Skin when the body of the control has been dragged by
the mouse.
|
void |
mousePressed(MouseEvent e)
Invoked by a Skin when the body of the control has been pressed by
the mouse.
|
void |
mouseReleased(MouseEvent e)
Invoked by a Skin when the body of the control has been released by
the mouse.
|
static void |
removeAnchor(Control control) |
(package private) void |
selectRows(int focusedIndex,
int index) |
static <T> void |
setAnchor(Control control,
T anchor,
boolean isDefaultAnchor) |
protected void |
simpleSelect(MouseButton button,
int clickCount,
boolean shortcutDown) |
callAction, callActionForEvent, contextMenuRequested, dispose, focusChanged, getControl, matchActionForEvent, mouseEntered, mouseExited, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
private static final java.lang.String ANCHOR_PROPERTY_KEY
private static final java.lang.String IS_DEFAULT_ANCHOR_KEY
private boolean latePress
public CellBehaviorBase(T control, java.util.List<KeyBinding> bindings)
public static <T> T getAnchor(Control control, T defaultResponse)
public static <T> void setAnchor(Control control, T anchor, boolean isDefaultAnchor)
public static boolean hasNonDefaultAnchor(Control control)
public static boolean hasDefaultAnchor(Control control)
private static boolean hasAnchor(Control control)
public static void removeAnchor(Control control)
protected abstract Control getCellContainer()
protected abstract MultipleSelectionModel<?> getSelectionModel()
protected abstract FocusModel<?> getFocusModel()
protected abstract void edit(T cell)
protected boolean handleDisclosureNode(double x, double y)
protected boolean isClickPositionValid(double x, double y)
protected int getIndex()
public void mousePressed(MouseEvent e)
BehaviorBase
mousePressed
in class BehaviorBase<T extends Cell>
e
- the mouse eventpublic void mouseReleased(MouseEvent e)
BehaviorBase
mouseReleased
in class BehaviorBase<T extends Cell>
e
- the mouse eventpublic void mouseDragged(MouseEvent e)
BehaviorBase
mouseDragged
in class BehaviorBase<T extends Cell>
e
- the mouse eventprotected void doSelect(double x, double y, MouseButton button, int clickCount, boolean shiftDown, boolean shortcutDown)
protected void simpleSelect(MouseButton button, int clickCount, boolean shortcutDown)
protected void handleClicks(MouseButton button, int clickCount, boolean isAlreadySelected)
void selectRows(int focusedIndex, int index)
protected boolean isSelected()