Package org.adempiere.webui.editor
Class WSearchEditor
- java.lang.Object
-
- org.adempiere.webui.editor.WEditor
-
- org.adempiere.webui.editor.WSearchEditor
-
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,IZoomableEditor
,ContextMenuListener
,ValueChangeListener
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class WSearchEditor extends WEditor implements ContextMenuListener, ValueChangeListener, IZoomableEditor
Search Editor for web UI. Web UI port of search type VLookup- Author:
- Ashley G Ramdass
-
-
Field Summary
Fields Modifier and Type Field Description protected ADWindow
adwindow
static String
ATTRIBUTE_IS_INFO_PANEL_OPEN
protected InfoPanel
infoPanel
protected Lookup
lookup
-
Fields inherited from class org.adempiere.webui.editor.WEditor
component, gridField, gridTab, INIT_EDIT_EVENT, label, listeners, mandatory, MAX_DISPLAY_LENGTH, popupMenu, readOnly, tableEditor
-
-
Constructor Summary
Constructors Constructor Description WSearchEditor(String columnName, boolean mandatory, boolean readonly, boolean updateable, Lookup lookup)
WSearchEditor(GridField gridField)
WSearchEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration)
WSearchEditor(Lookup lookup, String label, String description, boolean mandatory, boolean readonly, boolean updateable)
Constructor for use if a grid field is unavailable
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
actionButton(String queryValue)
protected void
actionCombo(Object value)
protected void
actionQuickEntry(boolean newRecord)
Action - Special Quick Entry Screenprotected void
actionRefresh(Object value)
protected void
actionText(String text)
void
actionZoom()
static WSearchEditor
createBPartner(int windowNo)
static WSearchEditor
createProduct(int windowNo)
void
dynamicDisplay(Properties ctx)
allow subclass to perform dynamic loading of dataComboEditorBox
getComponent()
String
getDisplay()
String
getDisplayTextForGridView(Object value)
String[]
getEvents()
Object
getValue()
boolean
isReadWrite()
boolean
isShowingDialog()
void
onEvent(org.zkoss.zk.ui.event.Event e)
void
onMenu(ContextMenuEvent evt)
void
propertyChange(PropertyChangeEvent evt)
protected void
resetButtonState()
void
setReadWrite(boolean readWrite)
void
setTableEditor(boolean b)
void
setValue(Object value)
void
showInfoPanel(InfoPanel ip)
void
valueChange(ValueChangeEvent evt)
-
Methods inherited from class org.adempiere.webui.editor.WEditor
addChangeLogMenu, addTextEditorMenu, addValueChangeListener, applyFieldStyles, applyLabelStyles, buildStyle, cleanColumnName, dynamicDisplay, fillHorizontal, fireValueChange, focusNext, getColumnName, getDescription, getDisplayComponent, getGridField, getLabel, getPopupMenu, getStyleEvaluatee, isComponentOfEditor, isMandatory, isMandatoryStyle, isNullOrEmpty, isProcessParameter, isSearchable, isShowPreference, isVisible, isZoomable, removeValuechangeListener, setBackground, setBackground, setChangeEventWhenEditing, setColumnName, setComponent, setFieldStyle, setGridTab, setLabelStyle, setMandatory, setProcessParameter, setVisible, showMenu, toString, updateLabelStyle, updateStyle, updateStyle
-
-
-
-
Field Detail
-
ATTRIBUTE_IS_INFO_PANEL_OPEN
public static final String ATTRIBUTE_IS_INFO_PANEL_OPEN
- See Also:
- Constant Field Values
-
lookup
protected Lookup lookup
-
infoPanel
protected InfoPanel infoPanel
-
adwindow
protected ADWindow adwindow
-
-
Constructor Detail
-
WSearchEditor
public WSearchEditor(GridField gridField)
- Parameters:
gridField
-
-
WSearchEditor
public WSearchEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration)
- Parameters:
gridField
-tableEditor
-editorConfiguration
-
-
WSearchEditor
public WSearchEditor(Lookup lookup, String label, String description, boolean mandatory, boolean readonly, boolean updateable)
Constructor for use if a grid field is unavailable- Parameters:
lookup
- Store of selectable datalabel
- column name (not displayed)description
- description of componentmandatory
- whether a selection must be madereadonly
- whether or not the editor is read onlyupdateable
- whether the editor contents can be changed
-
-
Method Detail
-
getComponent
public ComboEditorBox getComponent()
- Overrides:
getComponent
in classWEditor
- Returns:
- Component
-
isReadWrite
public boolean isReadWrite()
- Specified by:
isReadWrite
in classWEditor
- Returns:
- editable
-
setReadWrite
public void setReadWrite(boolean readWrite)
- Specified by:
setReadWrite
in classWEditor
-
getDisplay
public String getDisplay()
- Specified by:
getDisplay
in classWEditor
- Returns:
- display text
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event e)
- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
-
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacePropertyChangeListener
- Overrides:
propertyChange
in classWEditor
-
actionRefresh
protected void actionRefresh(Object value)
-
actionZoom
public void actionZoom()
- Specified by:
actionZoom
in interfaceIZoomableEditor
-
onMenu
public void onMenu(ContextMenuEvent evt)
- Specified by:
onMenu
in interfaceContextMenuListener
-
actionText
protected void actionText(String text)
-
resetButtonState
protected void resetButtonState()
-
actionCombo
protected void actionCombo(Object value)
-
actionQuickEntry
protected void actionQuickEntry(boolean newRecord)
Action - Special Quick Entry Screen- Parameters:
newRecord
- true if new record should be created
-
actionButton
protected void actionButton(String queryValue)
-
showInfoPanel
public void showInfoPanel(InfoPanel ip)
-
valueChange
public void valueChange(ValueChangeEvent evt)
- Specified by:
valueChange
in interfaceValueChangeListener
-
setTableEditor
public void setTableEditor(boolean b)
- Overrides:
setTableEditor
in classWEditor
-
isShowingDialog
public boolean isShowingDialog()
-
createBPartner
public static WSearchEditor createBPartner(int windowNo)
- Parameters:
windowNo
-- Returns:
- WSearchEditor
-
createProduct
public static WSearchEditor createProduct(int windowNo)
- Parameters:
windowNo
-- Returns:
- WSearchEditor
-
dynamicDisplay
public void dynamicDisplay(Properties ctx)
Description copied from class:WEditor
allow subclass to perform dynamic loading of data- Overrides:
dynamicDisplay
in classWEditor
-
getDisplayTextForGridView
public String getDisplayTextForGridView(Object value)
- Overrides:
getDisplayTextForGridView
in classWEditor
-
-