|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.option.DefaultEditorFactory
public class DefaultEditorFactory
Editor factory that creates editors which represent the parameters managed
by a given OptionHandler
in a tabbed pane fashion.
Each section is represented by a distinct tab of the tabbed pane layout
within the editor component. The parameters contained in a given section
are arranged in top down fashion, each one in a line,
on the left side a name, on the right side an input mask for the parameter.
Field Summary | |
---|---|
static java.lang.Object |
ALIGNMENT_HORIZONTAL
Value for attribute enum alignment. |
static java.lang.Object |
ALIGNMENT_VERTICAL
Value for attribute enum alignment. |
static java.lang.String |
ATTRIBUTE_CARD_ID
Attribute key used to store a String id tag. |
static java.lang.String |
ATTRIBUTE_CONTROLLER_ID
Attribute key used to store an Object id tag usable as a
key in a Map . |
static java.lang.String |
ATTRIBUTE_ENUM_ALIGNMENT
Attribute key used to store enum alignment hint. |
static java.lang.String |
ATTRIBUTE_ENUM_STYLE
Attribute key used to store enum style hint. |
static java.lang.String |
ATTRIBUTE_MAX_VALUE_LABEL_TEXT
Attribute key used to specify an alternative label text for the maximum value tick editors of bounded numerical option items, i.e. |
static java.lang.String |
ATTRIBUTE_MIN_VALUE_LABEL_TEXT
Attribute key used to specify an alternative label text for the minimum value tick for editors of bounded numerical option items, i.e. |
static java.lang.String |
ATTRIBUTE_STRING_STYLE
Attribute key used to store string style hint. |
static java.lang.String |
FILL_SPACE_WEIGHT
Attribute key used to store a Double to indicate that the
item should take up more space if that space is available. |
static java.lang.Object |
STYLE_COMBO_BOX
Value for attribute enum style specifying that a combo box view should be used. |
static java.lang.Object |
STYLE_RADIO_BUTTONS
Value for attribute enum style specifying that a group of radio buttons should be used. |
static java.lang.Object |
STYLE_TEXT_AREA
Value for attribute string style specifying that a text area view should be used. |
static java.lang.Object |
STYLE_TEXT_FIELD
Value for attribute string style specifying that a text field view should be used. |
Constructor Summary | |
---|---|
DefaultEditorFactory()
Creates a new instance of DefaultEditorFactory. |
Method Summary | |
---|---|
Editor |
createEditor(OptionHandler handler)
Creates a default editor for the specified option handler. |
Editor |
createEditor(OptionHandler handler,
java.util.Map attributes)
Creates a default editor for the specified option handler. |
ItemEditor |
createEditor(OptionItem item)
Creates a default editor for the specified option item. |
ItemEditor |
createEditor(OptionItem item,
java.util.Map attributes)
Creates a default editor for the specified option item. |
protected Editor |
createEditor(OptionSection section)
Creates a default editor for the specified option section. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ATTRIBUTE_ENUM_ALIGNMENT
public static final java.lang.String ATTRIBUTE_ENUM_STYLE
public static final java.lang.String ATTRIBUTE_STRING_STYLE
public static final java.lang.String ATTRIBUTE_CONTROLLER_ID
Object
id tag usable as a
key in a Map
.
OptionItem
specifies the
item as a controller for a set of option groups for which the
same controller tag has been set. Only the group whose card id tag
matches the string representation of the editor value of the item will
be visible.
The tag has to be unique among all items in a given
OptionSection
.
OptionGroup
will result in
the group's view being controlled by the OptionItem
with
the same controller tag.
ATTRIBUTE_CARD_ID
public static final java.lang.String FILL_SPACE_WEIGHT
Double
to indicate that the
item should take up more space if that space is available.
public static final java.lang.String ATTRIBUTE_CARD_ID
String
id tag.
OptionGroup
and
its value should equal the string representation of a possible value of
the editor of the OptionItem
that was specified to be the
layout controller.
ATTRIBUTE_CONTROLLER_ID
public static final java.lang.String ATTRIBUTE_MAX_VALUE_LABEL_TEXT
IntOptionItem
and/or DoubleOptionItem
instances
with both ATTRIBUTE_MAX_VALUE
and
ATTRIBUTE_MIN_VALUE
set.
Values have to be of type String
.
public static final java.lang.String ATTRIBUTE_MIN_VALUE_LABEL_TEXT
IntOptionItem
and/or DoubleOptionItem
instances
with both ATTRIBUTE_MAX_VALUE
and
ATTRIBUTE_MIN_VALUE
set.
Values have to be of type String
.
public static final java.lang.Object STYLE_COMBO_BOX
public static final java.lang.Object STYLE_RADIO_BUTTONS
public static final java.lang.Object STYLE_TEXT_AREA
public static final java.lang.Object STYLE_TEXT_FIELD
public static final java.lang.Object ALIGNMENT_HORIZONTAL
public static final java.lang.Object ALIGNMENT_VERTICAL
Constructor Detail |
---|
public DefaultEditorFactory()
Method Detail |
---|
public GuiFactory getGuiFactory()
EditorFactory
GuiFactory
that is used for I18N by this factory.
getGuiFactory
in interface EditorFactory
getGuiFactory
in interface ItemEditorFactory
GuiFactory
that is used for I18N by this factoryItemEditorFactory.setGuiFactory(GuiFactory)
public void setGuiFactory(GuiFactory factory)
EditorFactory
GuiFactory
used for I18N by this factory.
setGuiFactory
in interface EditorFactory
setGuiFactory
in interface ItemEditorFactory
factory
- the GuiFactory
ItemEditorFactory.getGuiFactory()
public Editor createEditor(OptionHandler handler)
createEditor( handler, null )
createEditor
in interface EditorFactory
handler
- the OptionHandler
for which an editor is
created
public Editor createEditor(OptionHandler handler, java.util.Map attributes)
createEditor
in interface EditorFactory
handler
- the OptionHandler
for which an editor is
createdattributes
- preference settings for the editor UI
public ItemEditor createEditor(OptionItem item)
createEditor( item, null )
createEditor
in interface ItemEditorFactory
item
- the OptionItem
for which an editor is created
public ItemEditor createEditor(OptionItem item, java.util.Map attributes)
createEditor
in interface ItemEditorFactory
item
- the OptionItem
for which an editor is createdattributes
- preference settings for the editor UI
protected Editor createEditor(OptionSection section)
section
- the section for which an editor is created
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |