Package org.adempiere.webui.editor
Class WChartEditor
java.lang.Object
org.adempiere.webui.editor.WEditor
org.adempiere.webui.editor.WChartEditor
- 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 chart from
DisplayType.Chart.A readonly editor that render chart from
MChart model to Panel component.- Author:
- Low Heng Sin Modifications - chart display, Paul Bowden, Adaxa Pty Ltd
-
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
ConstructorsConstructorDescriptionWChartEditor(GridField gridField, int windowNo) WChartEditor(GridField gridField, int windowNo, boolean tableEditor, IEditorConfiguration editorConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoidCallcreateChart()to re-render chart.org.zkoss.zul.PanelString[]getValue()Always return nullbooleanbooleanAlways return truebooleanvoidonEvent(org.zkoss.zk.ui.event.Event event) protected voidsetFieldStyle(String style) Set field stylevoidsetMandatory(boolean mandatory) No op.voidsetReadWrite(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, getGridField, getLabel, getPopupMenu, getStyleEvaluatee, getValidInput, isComponentOfEditor, isMandatoryStyle, isNullOrEmpty, isProcessParameter, isShowPreference, isValid, isVisible, isZoomable, propertyChange, removeDynamicDisplayListener, removeValuechangeListener, setBackground, setBackground, setChangeEventWhenEditing, setColumnName, setComponent, setGridTab, setLabelStyle, setProcessParameter, setTableEditor, setValidInput, setVisible, setVisible, showMenu, toString, updateLabelStyle, updateStyle, updateStyle
-
Constructor Details
-
WChartEditor
- Parameters:
gridField-windowNo-
-
WChartEditor
public WChartEditor(GridField gridField, int windowNo, boolean tableEditor, IEditorConfiguration editorConfiguration) - Parameters:
gridField-windowNo-tableEditor-editorConfiguration-
-
-
Method Details
-
getComponent
public org.zkoss.zul.Panel getComponent()- Overrides:
getComponentin classWEditor- Returns:
- Component
-
getDisplay
- Specified by:
getDisplayin classWEditor- Returns:
X_AD_Chart.getName()
-
getValue
Always return null -
isMandatory
public boolean isMandatory()- Overrides:
isMandatoryin classWEditor- Returns:
- true if field is mandatory
-
setMandatory
public void setMandatory(boolean mandatory) No op.- Overrides:
setMandatoryin classWEditor- Parameters:
mandatory- whether the field is mandatory
-
isReadWrite
public boolean isReadWrite()Always return true- Specified by:
isReadWritein classWEditor- Returns:
- true if editable
-
setReadWrite
public void setReadWrite(boolean readWrite) No op.- Specified by:
setReadWritein classWEditor
-
setValue
No op. -
getEvents
- Overrides:
getEventsin classWEditor- Returns:
- list of
WEditor.componentevents that this editor will listen to
-
onEvent
- Throws:
Exception
-
dynamicDisplay
public void dynamicDisplay()CallcreateChart()to re-render chart.- Overrides:
dynamicDisplayin classWEditor
-
isSearchable
public boolean isSearchable()- Overrides:
isSearchablein classWEditor- Returns:
- true if usable in find window, false otherwise
-
setFieldStyle
Description copied from class:WEditorSet field style- Overrides:
setFieldStylein classWEditor- Parameters:
style- sclass name (@sclass=) or zclass name (@zclass=) or css style string
-