Package org.adempiere.webui.editor
Class WDashboardContentEditor
java.lang.Object
org.adempiere.webui.editor.WEditor
org.adempiere.webui.editor.WDashboardContentEditor
- All Implemented Interfaces:
PropertyChangeListener,EventListener,IInputValidator,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
Default editor for
A readonly editor that render dashboard content from
DisplayType.DashboardContent.A readonly editor that render dashboard content from
MDashboardContent to Panel component.- Author:
- hengsin
-
Nested Class Summary
Nested classes/interfaces inherited from class org.adempiere.webui.editor.WEditor
WEditor.DynamicDisplayListener -
Field Summary
Fields inherited from class org.adempiere.webui.editor.WEditor
component, gridField, gridTab, IDEMPIERE_EDITOR_ATTR, INIT_EDIT_EVENT, label, listeners, mandatory, MAX_DISPLAY_LENGTH, popupMenu, readOnly, tableEditor -
Constructor Summary
ConstructorsConstructorDescriptionWDashboardContentEditor(GridField gridField, int windowNo) WDashboardContentEditor(GridField gridField, int windowNo, boolean tableEditor, IEditorConfiguration editorConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoidPostON_RENDER_CONTENTevent to render dashboard content.org.zkoss.zul.PanelAlways return null.getValue()Always return null.booleanvoidonEvent(org.zkoss.zk.ui.event.Event event) protected voidsetFieldStyle(String style) Set field stylevoidsetReadWrite(boolean readWrite) No op.voidNo op.Methods inherited from class org.adempiere.webui.editor.WEditor
addChangeLogMenu, addDynamicDisplayListener, addTextEditorMenu, addValueChangeListener, applyFieldStyles, applyLabelStyles, buildStyle, cleanColumnName, dynamicDisplay, fillHorizontal, fireValueChange, focusNext, getColumnName, getDescription, getDisplayComponent, getDisplayTextForGridView, getDisplayTextForGridView, getEvents, getGridField, getLabel, getPopupMenu, getStyleEvaluatee, getValidInput, isComponentOfEditor, isMandatory, isMandatoryStyle, isNullOrEmpty, isProcessParameter, isSearchable, isShowPreference, isValid, isVisible, isZoomable, propertyChange, removeDynamicDisplayListener, removeValuechangeListener, setBackground, setBackground, setChangeEventWhenEditing, setColumnName, setComponent, setGridTab, setLabelStyle, setMandatory, setProcessParameter, setTableEditor, setValidInput, setVisible, setVisible, showMenu, toString, updateLabelStyle, updateStyle, updateStyle
-
Constructor Details
-
WDashboardContentEditor
- Parameters:
gridField-windowNo-
-
WDashboardContentEditor
public WDashboardContentEditor(GridField gridField, int windowNo, boolean tableEditor, IEditorConfiguration editorConfiguration) - Parameters:
gridField- GridField for PA_DashboardContent_IDwindowNo-tableEditor-editorConfiguration-
-
-
Method Details
-
onEvent
- Throws:
Exception
-
setReadWrite
public void setReadWrite(boolean readWrite) No op.- Specified by:
setReadWritein classWEditor
-
isReadWrite
public boolean isReadWrite()- Specified by:
isReadWritein classWEditor- Returns:
- true if editable
-
setValue
No op. -
getValue
Always return null. -
getDisplay
Always return null.- Specified by:
getDisplayin classWEditor- Returns:
- display text
-
dynamicDisplay
public void dynamicDisplay()PostON_RENDER_CONTENTevent to render dashboard content.- Overrides:
dynamicDisplayin classWEditor
-
getComponent
public org.zkoss.zul.Panel getComponent()- Overrides:
getComponentin classWEditor- Returns:
- Component
-
setFieldStyle
Description copied from class:WEditorSet field style- Overrides:
setFieldStylein classWEditor- Parameters:
style- sclass name (@sclass=) or zclass name (@zclass=) or css style string
-