|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.Container<T>
com.extjs.gxt.ui.client.widget.ScrollContainer<Component>
com.extjs.gxt.ui.client.widget.LayoutContainer
com.extjs.gxt.ui.client.widget.ContentPanel
com.extjs.gxt.ui.client.widget.grid.RowEditor<M>
M - the model typepublic class RowEditor<M extends ModelData>
This RowEditor should be used as a plugin to Grid. It displays an
editor for all cells in a row.
BaseEvent.setCancelled(boolean).BaseEvent.setCancelled(boolean).
| Nested Class Summary | |
|---|---|
class |
RowEditor.RowEditorMessages
|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
RowEditor()
|
|
| Method Summary | |
|---|---|
EditorGrid.ClicksToEdit |
getClicksToEdit()
Returns the clicks to edit. |
RowEditor.RowEditorMessages |
getMessages()
Returns the roweditors's messages. |
int |
getMonitorPoll()
Returns the interval in ms in that the roweditor is validated |
void |
init(Component component)
Initializes the plugin when the component is created. |
boolean |
isErrorSummary()
Returns true if a tooltip with an error summary is shown. |
boolean |
isMonitorValid()
Returns true if this roweditor is monitored. |
void |
onComponentEvent(ComponentEvent ce)
Any events a component receives will be forwarded to this method. |
void |
setClicksToEdit(EditorGrid.ClicksToEdit clicksToEdit)
Sets the number of clicks to edit (defaults to ONE). |
void |
setErrorSummary(boolean errorSummary)
True to show a tooltip with an errorsummary (defaults to true) |
void |
setMessages(RowEditor.RowEditorMessages messages)
Sets the roweditors's messages. |
void |
setMonitorPoll(int monitorPoll)
Sets the polling interval in ms in that the roweditor validation is done (defaults to 200) |
void |
setMonitorValid(boolean monitorValid)
True to monitor the valid status of this roweditor (defaults to true) |
void |
startEditing(int rowIndex,
boolean doFocus)
Start editing of a specific row. |
void |
stopEditing(boolean saveChanges)
Stops editing. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.LayoutContainer |
|---|
add, add, addText, findComponent, getLayout, getWindowResizeDelay, insert, insert, isLayoutOnChange, isMonitorWindowResize, layout, layout, remove, removeAll, setLayout, setLayoutData, setLayoutOnChange, setMonitorWindowResize, setWindowResizeDelay |
| Methods inherited from class com.extjs.gxt.ui.client.widget.ScrollContainer |
|---|
addScrollListener, getHScrollPosition, getScrollMode, getVScrollPosition, removeScrollListener, scrollIntoView, setHScrollPosition, setScrollMode, setVScrollPosition |
| Methods inherited from class com.extjs.gxt.ui.client.widget.Container |
|---|
disable, enable, findItem, getItem, getItemByItemId, getItemCount, getItems, getWidget, indexOf, iterator, scrollIntoView |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
getBounds, getHeight, getHeight, getPosition, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| Methods inherited from class com.extjs.gxt.ui.client.widget.Component |
|---|
addListener, addPlugin, addStyleName, addWidgetListener, clearState, disableEvents, disableTextSelection, el, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, getBaseStyle, getBorders, getContextMenu, getData, getElement, getHideMode, getId, getItemId, getListeners, getModel, getState, getStateId, getToolTip, hasListeners, hasListeners, hide, hideToolTip, isDisabledEvents, isEnabled, isRendered, isStateful, isVisible, mask, mask, mask, onBrowserEvent, recalculate, removeAllListeners, removeFromParent, removeListener, removeStyleName, removeSwallow, removeToolTip, removeWidgetListener, render, render, repaint, saveState, setBorders, setContextMenu, setData, setElement, setEnabled, setHideMode, setId, setIntStyleAttribute, setItemId, setStateful, setStateId, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, setZIndex, show, sinkEvents, swallowEvent, swallowEvent, toString, unmask |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RowEditor()
| Method Detail |
|---|
public void init(Component component)
ComponentPlugin
init in interface ComponentPlugincomponent - the source componentpublic EditorGrid.ClicksToEdit getClicksToEdit()
public int getMonitorPoll()
public boolean isErrorSummary()
public RowEditor.RowEditorMessages getMessages()
public boolean isMonitorValid()
public void onComponentEvent(ComponentEvent ce)
ComponentComponent.onBrowserEvent(com.google.gwt.user.client.Event) method
should not be overridden or modified.
onComponentEvent in class ContentPanelce - the base eventpublic void setClicksToEdit(EditorGrid.ClicksToEdit clicksToEdit)
clicksToEdit - the clicks to editpublic void setErrorSummary(boolean errorSummary)
errorSummary - true to show an error summary.public void setMessages(RowEditor.RowEditorMessages messages)
messages - the messagespublic void setMonitorValid(boolean monitorValid)
monitorValid - true to monitor this roweditorpublic void setMonitorPoll(int monitorPoll)
monitorPoll - the polling interval in ms in that validation is done
public void startEditing(int rowIndex,
boolean doFocus)
rowIndex - the index of the row to edit.doFocus - true to focus the fieldpublic void stopEditing(boolean saveChanges)
saveChanges - true to save the changes. false to ignore them.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||