Package org.adempiere.webui.editor
Class WRadioGroupEditor
java.lang.Object
org.adempiere.webui.editor.WEditor
org.adempiere.webui.editor.WRadioGroupEditor
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,ListDataListener
,IInputValidator
,IZoomableEditor
,ContextMenuListener
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class WRadioGroupEditor
extends WEditor
implements ContextMenuListener, ListDataListener, IZoomableEditor
Default editor for
Implemented with
DisplayType.RadiogroupList
.Implemented with
WRadioGroupEditor.RadioGroupEditor
component.- Author:
- hengsin
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Container forRadiogroup
andRadio
component.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
ConstructorDescriptionWRadioGroupEditor
(String columnName, boolean mandatory, boolean isReadOnly, boolean isUpdateable, Lookup lookup) For ease of porting swing formWRadioGroupEditor
(GridField gridField) WRadioGroupEditor
(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration) WRadioGroupEditor
(Lookup lookup, String label, String description, boolean mandatory, boolean readonly, boolean updateable) Constructor for use if a grid field is unavailable -
Method Summary
Modifier and TypeMethodDescriptionvoid
Refresh lookup listvoid
Zoom to AD windowvoid
void
dynamicDisplay
(Properties ctx) Dynamic update of component stateString[]
getValue()
void
void
boolean
void
onEvent
(org.zkoss.zk.ui.event.Event event) void
onMenu
(ContextMenuEvent evt) On context menu eventvoid
setReadWrite
(boolean readWrite) void
Set editor valueMethods 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, 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
-
Field Details
-
LISTENER_EVENTS
-
-
Constructor Details
-
WRadioGroupEditor
- Parameters:
gridField
-
-
WRadioGroupEditor
public WRadioGroupEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration) - Parameters:
gridField
-tableEditor
-editorConfiguration
-
-
WRadioGroupEditor
public WRadioGroupEditor(Lookup lookup, String label, String description, boolean mandatory, boolean readonly, boolean updateable) Constructor for use if a grid field is unavailable- Parameters:
lookup
- Lookup listlabel
- field labeldescription
- description of componentmandatory
- whether a field is mandatoryreadonly
- whether or not the editor is read onlyupdateable
- whether the editor contents can be changed
-
WRadioGroupEditor
public WRadioGroupEditor(String columnName, boolean mandatory, boolean isReadOnly, boolean isUpdateable, Lookup lookup) For ease of porting swing form- Parameters:
columnName
-mandatory
-isReadOnly
-isUpdateable
-lookup
-
-
-
Method Details
-
getDisplay
- Specified by:
getDisplay
in classWEditor
- Returns:
- display text
-
getValue
-
setValue
Description copied from class:WEditor
Set editor value -
getComponent
- Overrides:
getComponent
in classWEditor
- Returns:
- Component
-
isReadWrite
public boolean isReadWrite()- Specified by:
isReadWrite
in classWEditor
- Returns:
- true if editable
-
setReadWrite
public void setReadWrite(boolean readWrite) - Specified by:
setReadWrite
in classWEditor
-
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>
-
getEvents
- Overrides:
getEvents
in classWEditor
- Returns:
- list of
WEditor.component
events that this editor will listen to
-
actionRefresh
public void actionRefresh()Refresh lookup list -
getLookup
- Returns:
- Lookup
-
onMenu
Description copied from interface:ContextMenuListener
On context menu event- Specified by:
onMenu
in interfaceContextMenuListener
-
dynamicDisplay
Description copied from class:WEditor
Dynamic update of component state- Overrides:
dynamicDisplay
in classWEditor
-
intervalAdded
- Specified by:
intervalAdded
in interfaceListDataListener
-
intervalRemoved
- Specified by:
intervalRemoved
in interfaceListDataListener
-
contentsChanged
- Specified by:
contentsChanged
in interfaceListDataListener
-
actionZoom
public void actionZoom()Description copied from interface:IZoomableEditor
Zoom to AD window- Specified by:
actionZoom
in interfaceIZoomableEditor
-