Class WButtonEditor

  • All Implemented Interfaces:
    PropertyChangeListener, EventListener, IProcessButton, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>

    public class WButtonEditor
    extends WEditor
    implements IProcessButton
    This class is based on org.compiere.grid.ed.VButton written by Jorg Janke.
    Author:
    Jorg Janke Modifications - UI Compatibility, ashley
    • Constructor Detail

      • WButtonEditor

        public WButtonEditor​(GridField gridField)
        Parameters:
        gridField -
      • WButtonEditor

        public WButtonEditor​(GridField gridField,
                             int rowIndex)
        Parameters:
        gridField -
        rowIndex -
      • WButtonEditor

        public WButtonEditor​(GridField gridField,
                             boolean tableEditor,
                             IEditorConfiguration editorConfiguration)
        Parameters:
        gridField -
        tableEditor -
        editorConfiguration -
      • WButtonEditor

        public WButtonEditor​(GridField gridField,
                             int rowIndex,
                             boolean tableEditor,
                             IEditorConfiguration editorConfiguration)
        Parameters:
        gridField -
        rowIndex -
        tableEditor -
        editorConfiguration -
    • Method Detail

      • getGridField

        public GridField getGridField()
        Overrides:
        getGridField in class WEditor
        Returns:
        grid field for this editor ( can be null )
      • isMandatory

        public boolean isMandatory()
        Overrides:
        isMandatory in class WEditor
        Returns:
        boolean
      • setMandatory

        public void setMandatory​(boolean mandatory)
        Description copied from class: WEditor
        Set whether the editor represents a mandatory field.
        Overrides:
        setMandatory in class WEditor
        Parameters:
        mandatory - whether the field is mandatory
      • isReadWrite

        public boolean isReadWrite()
        Specified by:
        isReadWrite in class WEditor
        Returns:
        editable
      • setReadWrite

        public void setReadWrite​(boolean readWrite)
        Specified by:
        setReadWrite in class WEditor
      • addActionListener

        public void addActionListener​(ActionListener actionListener)
      • removeActionListener

        public boolean removeActionListener​(ActionListener actionListener)
      • onEvent

        public void onEvent​(org.zkoss.zk.ui.event.Event event)
                     throws Exception
        Specified by:
        onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
        Throws:
        Exception
      • setADTabpanel

        public void setADTabpanel​(IADTabpanel adTabpanel)
      • isSearchable

        public boolean isSearchable()
        Overrides:
        isSearchable in class WEditor
        Returns:
        true if usable in find window, false otherwise