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
Nested ClassesModifier and TypeClassDescriptionstatic classContainer forRadiogroupandRadiocomponent.Nested classes/interfaces inherited from class org.adempiere.webui.editor.WEditor
WEditor.DynamicDisplayListener -
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionWRadioGroupEditor(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 TypeMethodDescriptionvoidRefresh lookup listvoidZoom to AD windowvoidvoiddynamicDisplay(Properties ctx) Dynamic update of component stateString[]getValue()voidvoidbooleanvoidonEvent(org.zkoss.zk.ui.event.Event event) voidonMenu(ContextMenuEvent evt) On context menu eventvoidsetReadWrite(boolean readWrite) voidSet 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:
getDisplayin classWEditor- Returns:
- display text
-
getValue
-
setValue
Description copied from class:WEditorSet editor value -
getComponent
- Overrides:
getComponentin classWEditor- Returns:
- Component
-
isReadWrite
public boolean isReadWrite()- Specified by:
isReadWritein classWEditor- Returns:
- true if editable
-
setReadWrite
public void setReadWrite(boolean readWrite) - Specified by:
setReadWritein classWEditor
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event event) - Specified by:
onEventin interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
-
getEvents
- Overrides:
getEventsin classWEditor- Returns:
- list of
WEditor.componentevents that this editor will listen to
-
actionRefresh
public void actionRefresh()Refresh lookup list -
getLookup
- Returns:
- Lookup
-
onMenu
Description copied from interface:ContextMenuListenerOn context menu event- Specified by:
onMenuin interfaceContextMenuListener
-
dynamicDisplay
Description copied from class:WEditorDynamic update of component state- Overrides:
dynamicDisplayin classWEditor
-
intervalAdded
- Specified by:
intervalAddedin interfaceListDataListener
-
intervalRemoved
- Specified by:
intervalRemovedin interfaceListDataListener
-
contentsChanged
- Specified by:
contentsChangedin interfaceListDataListener
-
actionZoom
public void actionZoom()Description copied from interface:IZoomableEditorZoom to AD window- Specified by:
actionZoomin interfaceIZoomableEditor
-