Package org.brerp.ui.zk.editor
Class WSurveyEditor
java.lang.Object
org.adempiere.webui.editor.WEditor
org.brerp.ui.zk.editor.WSurveyEditor
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,IInputValidator
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class WSurveyEditor
extends WEditor
implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
Survey Editor
- Version:
- $Id: WSurveyEditor.java, v1.0 01/10/13 15:50:01,gabriels
- Author:
- Gabriel S. Schneider (gabriel.schneider@brerp.org, http://www.brerp.org)
-
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, readOnly, tableEditor
-
Constructor Summary
ConstructorDescriptionWSurveyEditor
(int adTableID, int recordID, int windowNo, String label) WSurveyEditor
(GridTab gridTab, GridField gridField) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
String[]
getValue()
boolean
void
onEvent
(org.zkoss.zk.ui.event.Event event) void
onMenu
(ContextMenuEvent evt) void
setReadWrite
(boolean readWrite) void
Set editor valuevoid
Methods inherited from class org.adempiere.webui.editor.WEditor
addChangeLogMenu, addDynamicDisplayListener, addTextEditorMenu, addValueChangeListener, applyFieldStyles, applyLabelStyles, buildStyle, cleanColumnName, dynamicDisplay, dynamicDisplay, fillHorizontal, fireValueChange, focusNext, getColumnName, getDescription, getDisplayComponent, getDisplayTextForGridView, getDisplayTextForGridView, getGridField, getLabel, getStyleEvaluatee, getValidInput, isComponentOfEditor, isMandatory, isMandatoryStyle, isNullOrEmpty, isProcessParameter, isSearchable, isShowPreference, isValid, isVisible, isZoomable, propertyChange, removeDynamicDisplayListener, removeValuechangeListener, setBackground, setBackground, setChangeEventWhenEditing, setColumnName, setComponent, setFieldStyle, setGridTab, setLabelStyle, setMandatory, setProcessParameter, setTableEditor, setValidInput, setVisible, setVisible, showMenu, toString, updateLabelStyle, updateStyle, updateStyle
-
Constructor Details
-
WSurveyEditor
Constructor -
WSurveyEditor
-
-
Method Details
-
getPopupMenu
- Overrides:
getPopupMenu
in classWEditor
- Returns:
- popup menu instance ( if available )
-
validateQuestions
public void validateQuestions() -
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event event) - Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
-
onMenu
-
actionZoom
public void actionZoom() -
getEvents
- Overrides:
getEvents
in classWEditor
- Returns:
- list of
WEditor.component
events that this editor will listen to
-
setReadWrite
public void setReadWrite(boolean readWrite) - Specified by:
setReadWrite
in classWEditor
-
getComponent
- Overrides:
getComponent
in classWEditor
- Returns:
- Component
-
isReadWrite
public boolean isReadWrite()- Specified by:
isReadWrite
in classWEditor
- Returns:
- true if editable
-
setValue
Description copied from class:WEditor
Set editor value -
getValue
-
getDisplay
- Specified by:
getDisplay
in classWEditor
- Returns:
- display text
-