Search this API

y.option
Interface ItemEditorFactory

All Known Implementing Classes:
DefaultEditorFactory

public interface ItemEditorFactory

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

 

Method Summary
 ItemEditor createEditor(OptionItem item)
          Creates an editor for the specified option item.
 ItemEditor createEditor(OptionItem item, java.util.Map attributes)
          Creates an editor for the specified option item.
 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

ItemEditor createEditor(OptionItem item)
Creates an editor for the specified option item.

Parameters:
item - the OptionItem
Returns:
an editor for the specified option item

createEditor

ItemEditor createEditor(OptionItem item,
                        java.util.Map attributes)
Creates an editor for the specified option item.

Parameters:
item - the OptionItem
attributes - a Map specifying overrides for the item attributes
Returns:
an editor for the specified option item

getGuiFactory

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

Returns:
the GuiFactory that is used for I18N by this factory
See Also:
setGuiFactory(GuiFactory)

setGuiFactory

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

Parameters:
factory - the GuiFactory
See Also:
getGuiFactory()

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