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 GuiRepresentations as getReprDefaultSet(),
which is an extended version of GuiRepresentation.getDefaultSet().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacethe interface definition of mapping typestatic enuma concrete definition of mapper typestatic classa mapping between a representation of a class and a view with a mapping type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static GuiSwingMapperSetprotected List<GuiSwingMapperSet.Mapper> protected static GuiReprSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(GuiSwingMapperSet.Mapper... mappers) static voidaddDefaultReprClassesTo(GuiSwingMapperSet viewSet) provide a default set of mappings between a representation and a view.static voidaddDefaultReprSetTo(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.ViewaddReprClassTableColumn(Class<? extends GuiRepresentation> reprClass, GuiSwingElement view) register a mapping of reprClass and a column view with the typeGuiSwingMapperSet.MapperMatchTypeDefault.TableColumnaddReprClassTableColumnToTop(Class<? extends GuiRepresentation> reprClass, GuiSwingElement view) register a mapping of reprClass and a column view with the typeGuiSwingMapperSet.MapperMatchTypeDefault.TableColumnas top-precedenceaddReprClassToTop(Class<? extends GuiRepresentation> reprClass, GuiSwingElement view) register a mapping of reprClass and a regular view with the typeGuiSwingMapperSet.MapperMatchTypeDefault.Viewas top-precedencestatic GuiReprEmbeddedComponentstatic GuiReprValueDocumentEditorstatic GuiReprValueImagePanecreateValueImagePane(boolean processGlobal) static GuiSwingMapperSetstatic GuiReprSetview(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.Viewas 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.TableColumnas 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, aGuiSwingTableColumnSetor 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
-