java.lang.Object
org.autogui.swing.GuiSwingMapperSet
a set of mapping between
GuiRepresentation
and GuiSwingElement
.
The default set is provided by getDefaultMapperSet()
.
The class also provides default set of GuiRepresentation
s as getReprDefaultSet()
,
which is an extended version of GuiRepresentation.getDefaultSet()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
the interface definition of mapping typestatic enum
a concrete definition of mapper typestatic class
a mapping between a representation of a class and a view with a mapping type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static GuiSwingMapperSet
protected List
<GuiSwingMapperSet.Mapper> protected static GuiReprSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(GuiSwingMapperSet.Mapper... mappers) static void
addDefaultReprClassesTo
(GuiSwingMapperSet viewSet) provide a default set of mappings between a representation and a view.static void
addDefaultReprSetTo
(GuiReprSet reprSet) provide a default set of representations.addReprClass
(Class<? extends GuiRepresentation> reprClass, GuiSwingElement view) register a mapping of reprClass and a regular view with the typeGuiSwingMapperSet.MapperMatchTypeDefault.View
addReprClassTableColumn
(Class<? extends GuiRepresentation> reprClass, GuiSwingElement view) register a mapping of reprClass and a column view with the typeGuiSwingMapperSet.MapperMatchTypeDefault.TableColumn
addReprClassTableColumnToTop
(Class<? extends GuiRepresentation> reprClass, GuiSwingElement view) register a mapping of reprClass and a column view with the typeGuiSwingMapperSet.MapperMatchTypeDefault.TableColumn
as top-precedenceaddReprClassToTop
(Class<? extends GuiRepresentation> reprClass, GuiSwingElement view) register a mapping of reprClass and a regular view with the typeGuiSwingMapperSet.MapperMatchTypeDefault.View
as top-precedencestatic GuiReprEmbeddedComponent
static GuiReprValueDocumentEditor
static GuiReprValueImagePane
createValueImagePane
(boolean processGlobal) static GuiSwingMapperSet
static GuiReprSet
view
(GuiMappingContext context) view
(GuiMappingContext context, GuiSwingMapperSet.MapperMatchType matchType) viewTableColumn
(GuiMappingContext context)
-
Field Details
-
mappers
-
reprDefaultSet
-
defaultMapperSet
-
-
Constructor Details
-
GuiSwingMapperSet
public GuiSwingMapperSet()
-
-
Method Details
-
addReprClass
public GuiSwingMapperSet addReprClass(Class<? extends GuiRepresentation> reprClass, GuiSwingElement view) register a mapping of reprClass and a regular view with the typeGuiSwingMapperSet.MapperMatchTypeDefault.View
- Parameters:
reprClass
- a representation classview
- a view factory- Returns:
- this
-
addReprClassTableColumn
public GuiSwingMapperSet addReprClassTableColumn(Class<? extends GuiRepresentation> reprClass, GuiSwingElement view) register a mapping of reprClass and a column view with the typeGuiSwingMapperSet.MapperMatchTypeDefault.TableColumn
- Parameters:
reprClass
- a representation classview
- a column view factory- Returns:
- this
-
addReprClassToTop
public GuiSwingMapperSet addReprClassToTop(Class<? extends GuiRepresentation> reprClass, GuiSwingElement view) register a mapping of reprClass and a regular view with the typeGuiSwingMapperSet.MapperMatchTypeDefault.View
as top-precedence- Parameters:
reprClass
- a representation classview
- a view factory- Returns:
- this
- Since:
- 1.6
-
addReprClassTableColumnToTop
public GuiSwingMapperSet addReprClassTableColumnToTop(Class<? extends GuiRepresentation> reprClass, GuiSwingElement view) register a mapping of reprClass and a column view with the typeGuiSwingMapperSet.MapperMatchTypeDefault.TableColumn
as top-precedence- Parameters:
reprClass
- a representation classview
- a column view factory- Returns:
- this
- Since:
- 1.6
-
add
-
getMappers
-
view
- Parameters:
context
- the target context- Returns:
- view as a regular component factory
-
viewTableColumn
- Parameters:
context
- the target context- Returns:
- a
GuiSwingTableColumn
, aGuiSwingTableColumnSet
or aGuiSwingAction
-
view
-
getReprDefaultSet
- Returns:
- the default set of representation including swing-based items.
setup by
addDefaultReprSetTo(GuiReprSet)
-
getDefaultMapperSet
-
addDefaultReprSetTo
provide a default set of representations.GuiRepresentation.getDefaultSet()
+ reprs in autogui.swing.mapping.*-
GuiReprCollectionElement
: precedesGuiReprCollectionTable
-
GuiReprValueBooleanCheckBox
-
GuiReprValueEnumComboBox
-
GuiReprValueFilePathField
-
GuiReprValueNumberSpinner
-
GuiReprValueStringField
-
GuiReprEmbeddedComponent
-
GuiReprValueDocumentEditor
-
GuiReprValueImagePane
-
GuiReprCollectionTable
-
GuiReprObjectTabbedPane
: precedesGuiReprObjectPane
-
GuiReprObjectPane
-
GuiReprPropertyPane
: follows other property supported panes likeGuiReprValueBooleanCheckBox
-
GuiReprAction
-
GuiReprActionList
-
GuiReprValueLabel
: matches any type of representations
- Parameters:
reprSet
- a target set for adding
-
-
createEmbeddedComponent
-
createValueDocumentEditor
-
createValueImagePane
-
addDefaultReprClassesTo
provide a default set of mappings between a representation and a view.- Parameters:
viewSet
- a target set for adding
-