Class DefaultEnumEditor

    • Constructor Detail

      • DefaultEnumEditor

        public DefaultEnumEditor()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.Component parent,
                           EditorContext<java.lang.Object> context,
                           EditorListener<java.lang.Object> listener)
        Description copied from interface: CockpitEditorRenderer
        Creates a new editor component and attaches it to the specified Component component.
        Parameters:
        parent - parent component the editor should be attached to
        context - the context for the editor creation
        listener - the listener to notify the rest of the world about value changes and other events
      • mapEnumToString

        protected java.lang.String mapEnumToString​(java.lang.Object value,
                                                   EditorContext<java.lang.Object> context)
      • getAllValues

        @Deprecated(since="2005",
                    forRemoval=true)
        protected java.util.List<java.lang.Object> getAllValues​(java.lang.String valueType,
                                                                java.lang.Object initialValue)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 2005, use getAllValues(EditorContext, Object) instead
      • getAllValues

        protected java.util.List<java.lang.Object> getAllValues​(EditorContext<java.lang.Object> context,
                                                                java.lang.Object initialValue)
      • isOptional

        protected boolean isOptional​(EditorContext<java.lang.Object> context)