Search this API

y.option
Interface EditorFactory

All Known Implementing Classes:
DefaultEditorFactory, TableEditorFactory

public interface EditorFactory

Specifies the general contract of an editor factory. Editor factories are the recommended way to create editors for option handlers.

 

Method Summary
 Editor createEditor(OptionHandler handler)
          Creates an editor for the specified option handler.
 Editor createEditor(OptionHandler handler, java.util.Map attributes)
          Creates an editor for the specified option handler.
 GuiFactory getGuiFactory()
          Returns the GuiFactory that is used for I18N by this factory.
 void setGuiFactory(GuiFactory factory)
          Specifies the GuiFactory used for I18N by this factory.
 

Method Detail

createEditor

Editor createEditor(OptionHandler handler)
Creates an editor for the specified option handler.

Parameters:
handler - the OptionHandler
Returns:
an editor for the specified option handler

createEditor

Editor createEditor(OptionHandler handler,
                    java.util.Map attributes)
Creates an editor for the specified option handler.

Parameters:
handler - the OptionHandler
attributes - a Map specifying overrides for the handler attributes
Returns:
an editor for the specified option handler

getGuiFactory

GuiFactory getGuiFactory()
Returns the GuiFactory that is used for I18N by this factory.


setGuiFactory

void setGuiFactory(GuiFactory factory)
Specifies the GuiFactory used for I18N by this factory.


© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.