T - the row bean typepublic class RowActionPanel<T> extends WDiv implements RowActionable
WDiv.DivModel| Constructor and Description |
|---|
RowActionPanel()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRowModeKey(Object rowKey,
RowMode mode) |
void |
clearRowModeKeys()
Clear all the row mode keys.
|
protected List<com.github.bordertech.wcomponents.AjaxTarget> |
getColumnAjaxTargets() |
RowMode |
getCurrentRowMode() |
RowMode |
getRowMode(Object rowKey) |
RowMode |
getRowModeKey(Object key) |
protected com.github.bordertech.wcomponents.WTable |
getTable() |
protected void |
handleCancelButtonAction()
Handle the cancel button action.
|
protected void |
handleDeleteButtonAction()
Handle the delete button action.
|
protected void |
handleEditButtonAction()
Handle the edit button action.
|
protected boolean |
isAllowEdit() |
protected void |
preparePaintComponent(com.github.bordertech.wcomponents.Request request) |
void |
removeRowModeKey(Object rowKey) |
protected void |
setupColumnAjaxTargets()
Setup the row action AJAX targets (ie each column).
|
afterPaint, beforePaint, getComponentModel, getOrCreateComponentModel, newComponentModeladd, add, getChildAt, getChildCount, getChildren, getIndexOfChild, getNamingContextId, isNamingContext, remove, removeAll, setNamingContext, setTemplate, setTemplate, setTemplateMarkUpaddBeanToScratchMap, doUpdateBeanValue, getBean, getBeanFromScratchMap, getBeanId, getBeanProperty, getBeanProvider, getBeanScratchMap, getBeanValue, getData, isBeanInScratchMap, isChanged, isSearchAncestors, isUseRequestScopeScratchMap, removeBeanFromScratchMap, resetData, setBean, setBeanId, setBeanProperty, setBeanProvider, setData, setSearchAncestors, updateBeanValueaddHtmlClass, addHtmlClass, addNotify, assertAddSupported, createErrorDiagnostic, createErrorDiagnostic, forward, getAccessibleText, getAttribute, getBaseUrl, getDefaultModel, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getIdName, getInternalId, getLabel, getName, getParent, getScratchMap, getTabIndex, getTag, getTemplate, getTemplateMarkUp, getToolTip, handleRequest, hasNoComponentModel, hasTabIndex, initialiseComponentModel, invokeLater, invokeLaters, isDebugStructure, isDefaultState, isFlagSet, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, paintComponent, preparePaint, removeAttribute, removeComponentModel, removeHtmlClass, removeHtmlClass, removeNotify, replaceWComponent, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFlag, setFocussed, setHidden, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showErrorIndicatorsForComponent, showWarningIndicators, showWarningIndicatorsForComponent, tidyUpUIContext, tidyUpUIContextForTree, toString, validate, validateComponent, writeReplaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddHtmlClass, addHtmlClass, forward, getAccessibleText, getAttribute, getBaseUrl, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getIdName, getInternalId, getLabel, getName, getParent, getTabIndex, getTag, getToolTip, handleRequest, hasTabIndex, invokeLater, isDefaultState, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, preparePaint, removeAttribute, removeHtmlClass, removeHtmlClass, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFocussed, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showWarningIndicators, tidyUpUIContextForTree, validatepublic RowMode getCurrentRowMode()
getCurrentRowMode in interface RowActionablepublic RowMode getRowMode(Object rowKey)
getRowMode in interface RowActionablerowKey - the row key to check and considers if the table is editablepublic void addRowModeKey(Object rowKey, RowMode mode)
addRowModeKey in interface RowActionablerowKey - add the following key to the row modesmode - the row modepublic void removeRowModeKey(Object rowKey)
removeRowModeKey in interface RowActionablerowKey - remove the following key to the row modespublic RowMode getRowModeKey(Object key)
getRowModeKey in interface RowActionablekey - the row key to checkpublic void clearRowModeKeys()
RowActionableclearRowModeKeys in interface RowActionableprotected void preparePaintComponent(com.github.bordertech.wcomponents.Request request)
preparePaintComponent in class com.github.bordertech.wcomponents.AbstractWComponentprotected void setupColumnAjaxTargets()
protected void handleEditButtonAction()
protected void handleDeleteButtonAction()
protected void handleCancelButtonAction()
protected List<com.github.bordertech.wcomponents.AjaxTarget> getColumnAjaxTargets()
protected com.github.bordertech.wcomponents.WTable getTable()
protected boolean isAllowEdit()
Copyright © 2018. All rights reserved.