Class WHtmlEditor

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

    public class WHtmlEditor
    extends WEditor
    implements ContextMenuListener
    HTML Editor

    Implementation of an editor to show HTML content

    Based on contribution from
    Version:
    $Id: WHTMLEditor.java, v1.0 11/11/2014 20:25:06, muriloht Exp $
    Author:
    muriloht (muriloht@devcoffee.com.br, http://www.devcoffee.com.br)
    • Constructor Detail

      • WHtmlEditor

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

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

      • getComponent

        public org.zkoss.zul.Div getComponent()
        Overrides:
        getComponent in class WEditor
        Returns:
        Component
      • 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
      • getDisplayComponent

        public org.zkoss.zk.ui.Component getDisplayComponent()
        Description copied from class: WEditor
        return component use for display value in grid view mode in non edit status if return null, a label will replace. because each row must has one instance of this component, don't cache it. just create new instance
        Overrides:
        getDisplayComponent in class WEditor
        Returns:
      • 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