|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.Component
org.apache.pivot.wtk.Container
org.apache.pivot.wtk.Window
org.apache.pivot.wtk.content.TableViewRowEditor
public class TableViewRowEditor
Default table view row editor.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Window |
---|
Window.ActionMapping, Window.ActionMappingSequence, Window.IconImageSequence, Window.Skin |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Container |
---|
Container.EDT_Checker |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component |
---|
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
---|
Sequence.Tree<T> |
Constructor Summary | |
---|---|
TableViewRowEditor()
|
Method Summary | |
---|---|
void |
beginEdit(TableView tableViewArgument,
int rowIndexArgument,
int columnIndexArgument)
Called to begin editing a table row. |
void |
close()
Closes the window and all of its owned windows. |
void |
endEdit(boolean result)
Terminates an edit operation. |
Dictionary<String,Component> |
getCellEditors()
Gets this row editor's cell editor dictionary. |
CardPaneSkin.SelectionChangeEffect |
getEditEffect()
Returns the effect that is applied when the editor opens or closes. |
int |
getEditEffectDuration()
Returns the edit effect duration. |
int |
getEditEffectRate()
Returns the edit effect rate. |
int |
getRowIndex()
|
TableView |
getTableView()
|
boolean |
isEditing()
Tests whether an edit is currently in progress. |
boolean |
keyPressed(int keyCode,
Keyboard.KeyLocation keyLocation)
|
void |
open(Display display,
Window owner)
Opens the window. |
void |
setEditEffect(CardPaneSkin.SelectionChangeEffect editEffect)
Sets the effect that is applied when the editor opens or closes. |
void |
setEditEffectDuration(int effectDuration)
Sets the edit effect duration. |
void |
setEditEffectRate(int effectRate)
Sets the edit effect rate. |
Methods inherited from class org.apache.pivot.wtk.Window |
---|
align, align, clearActive, clearFocusDescendant, descendantGainedFocus, descendantRemoved, getActionMappings, getActiveWindow, getClientArea, getContent, getFocusDescendant, getIcons, getOwnedWindow, getOwnedWindowCount, getOwner, getRootOwner, getTitle, getWindowActionMappingListeners, getWindowClassListeners, getWindowListeners, getWindowStateListeners, isActive, isBottomMost, isClosed, isClosing, isMaximized, isOpen, isOpening, isOwner, isTopMost, moveToBack, moveToFront, open, open, remove, requestActive, setActive, setContent, setEnabled, setIcon, setIcon, setMaximized, setParent, setTitle, setVisible |
Methods inherited from class org.apache.pivot.wtk.Container |
---|
add, assertEventDispatchThread, assertEventDispatchThread, clear, containsFocus, descendantAdded, descendantLostFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getDescendantAt, getFocusTraversalPolicy, getGraphics, getLength, getNamedComponent, indexOf, insert, invalidate, isAncestor, isDoubleBuffered, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, repaint, requestFocus, setDoubleBuffered, setEventDispatchThreadChecker, setFocusTraversalPolicy, store, transferFocus, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TableViewRowEditor()
Method Detail |
---|
public TableView getTableView()
public int getRowIndex()
public Dictionary<String,Component> getCellEditors()
TextInput
implicitly associated with it
during editing.
This row editor uses data binding to populate the cell editor components and to get the data back out of those components, so it is the caller's responsibility to set up the data binding keys in each component they specify in this dictionary. The data binding key should equal the column name that the cell editor serves.
public void beginEdit(TableView tableViewArgument, int rowIndexArgument, int columnIndexArgument)
TableView.RowEditor
beginEdit
in interface TableView.RowEditor
public void endEdit(boolean result)
TableView.RowEditor
endEdit
in interface TableView.RowEditor
result
- true to perform the edit; false to cancel it.public boolean isEditing()
TableView.RowEditor
isEditing
in interface TableView.RowEditor
public CardPaneSkin.SelectionChangeEffect getEditEffect()
public void setEditEffect(CardPaneSkin.SelectionChangeEffect editEffect)
editEffect
- The edit effect, or null for no effect.public int getEditEffectDuration()
public void setEditEffectDuration(int effectDuration)
effectDuration
- The effect duration in milliseconds.public int getEditEffectRate()
public void setEditEffectRate(int effectRate)
effectRate
- The effect rate.public void open(Display display, Window owner)
Window
Note that this method is not a synchronous call, it schedules an event to open the window.
open
in class Window
display
- The display on which the window will be opened.owner
- The window's owner, or null if the window has no owner.public void close()
Window
close
in class Window
public boolean keyPressed(int keyCode, Keyboard.KeyLocation keyLocation)
keyPressed
in class Window
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |