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
ConstructorDescriptionWChartEditor
(GridField gridField, int windowNo) WChartEditor
(GridField gridField, int windowNo, boolean tableEditor, IEditorConfiguration editorConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
CallcreateChart()
to re-render chart.org.zkoss.zul.Panel
String[]
getValue()
Always return nullboolean
boolean
Always return trueboolean
void
onEvent
(org.zkoss.zk.ui.event.Event event) protected void
setFieldStyle
(String style) Set field stylevoid
setMandatory
(boolean mandatory) No op.void
setReadWrite
(boolean readWrite) No op.void
No 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:
getComponent
in classWEditor
- Returns:
- Component
-
getDisplay
- Specified by:
getDisplay
in classWEditor
- Returns:
X_AD_Chart.getName()
-
getValue
Always return null -
isMandatory
public boolean isMandatory()- Overrides:
isMandatory
in classWEditor
- Returns:
- true if field is mandatory
-
setMandatory
public void setMandatory(boolean mandatory) No op.- Overrides:
setMandatory
in classWEditor
- Parameters:
mandatory
- whether the field is mandatory
-
isReadWrite
public boolean isReadWrite()Always return true- Specified by:
isReadWrite
in classWEditor
- Returns:
- true if editable
-
setReadWrite
public void setReadWrite(boolean readWrite) No op.- Specified by:
setReadWrite
in classWEditor
-
setValue
No op. -
getEvents
- Overrides:
getEvents
in classWEditor
- Returns:
- list of
WEditor.component
events that this editor will listen to
-
onEvent
- Throws:
Exception
-
dynamicDisplay
public void dynamicDisplay()CallcreateChart()
to re-render chart.- Overrides:
dynamicDisplay
in classWEditor
-
isSearchable
public boolean isSearchable()- Overrides:
isSearchable
in classWEditor
- Returns:
- true if usable in find window, false otherwise
-
setFieldStyle
Description copied from class:WEditor
Set field style- Overrides:
setFieldStyle
in classWEditor
- Parameters:
style
- sclass name (@sclass=) or zclass name (@zclass=) or css style string
-