Package net.officefloor.eclipse.section
Class ManagedObjectItem
- java.lang.Object
-
- net.officefloor.eclipse.configurer.AbstractConfigurerRunnable
-
- net.officefloor.eclipse.ide.editor.AbstractItem<R,O,R,RE,M,E>
-
- net.officefloor.eclipse.ide.editor.AbstractConfigurableItem<SectionModel,SectionModel.SectionEvent,SectionChanges,SectionManagedObjectModel,SectionManagedObjectModel.SectionManagedObjectEvent,ManagedObjectItem>
-
- net.officefloor.eclipse.section.ManagedObjectItem
-
- All Implemented Interfaces:
java.lang.Runnable
,ConfigurableItem<ManagedObjectItem>
public class ManagedObjectItem extends AbstractConfigurableItem<SectionModel,SectionModel.SectionEvent,SectionChanges,SectionManagedObjectModel,SectionManagedObjectModel.SectionManagedObjectEvent,ManagedObjectItem>
Configuration for theSectionManagedObjectModel
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.eclipse.ide.editor.AbstractConfigurableItem
AbstractConfigurableItem.ConfigurableModelContext<O,M>, AbstractConfigurableItem.IdeConfigurer, AbstractConfigurableItem.ItemActioner<O,M>, AbstractConfigurableItem.ItemConfigurer<O,M,I>
-
Nested classes/interfaces inherited from class net.officefloor.eclipse.ide.editor.AbstractItem
AbstractItem.ConfigurableContext<R extends Model,O>, AbstractItem.IdeChildrenGroup, AbstractItem.IdeConnection<C extends ConnectionModel>, AbstractItem.IdeConnectionTarget<C extends ConnectionModel,T extends Model,TE extends java.lang.Enum<TE>>, AbstractItem.IdeExtractor, AbstractItem.IdeLabeller, AbstractItem.IdeStyle, AbstractItem.PreferenceListener
-
-
Field Summary
-
Fields inherited from class net.officefloor.eclipse.ide.editor.AbstractItem
builder
-
-
Constructor Summary
Constructors Constructor Description ManagedObjectItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
children(java.util.List<AbstractItem.IdeChildrenGroup> childGroups)
Loads theAbstractItem.IdeChildrenGroup
instances.AbstractConfigurableItem.IdeConfigurer
configure()
Obtains the item configuration.protected void
connections(java.util.List<AbstractItem.IdeConnectionTarget<? extends ConnectionModel,?,?>> connections)
Loads theAbstractItem.IdeConnectionTarget
instances (created fromAbstractItem.IdeConnection
instances).AbstractItem.IdeExtractor
extract()
protected ManagedObjectItem
item(SectionManagedObjectModel model)
Creates an item from theModel
.AbstractItem.IdeLabeller
label()
Obtains theAbstractItem.IdeLabeller
for theModel
.void
loadToParent(SectionModel parentModel, SectionManagedObjectModel itemModel)
static void
main(java.lang.String[] args)
Test configuration.SectionManagedObjectModel
prototype()
Creates the prototype for the item.java.lang.String
style()
Obtains the style for the display of theModel
.javafx.scene.layout.Pane
visual(SectionManagedObjectModel model, AdaptedChildVisualFactoryContext<SectionManagedObjectModel> context)
Creates the visual for theModel
.-
Methods inherited from class net.officefloor.eclipse.ide.editor.AbstractConfigurableItem
createAdaptedParent, furtherAdapt, loadConfiguration, main
-
Methods inherited from class net.officefloor.eclipse.ide.editor.AbstractItem
createChild, furtherAdapt, getBuilder, getChildrenGroups, getConfigurableContext, getConnections, getPreferenceStyleId, init, loadStyles, translateFromCommaSeparatedList, translateToCommaSeparateList, translateToNameMappings, translateToPropertyList
-
Methods inherited from class net.officefloor.eclipse.configurer.AbstractConfigurerRunnable
run
-
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Test configuration.- Parameters:
args
- Command line arguments.
-
prototype
public SectionManagedObjectModel prototype()
Description copied from class:AbstractItem
Creates the prototype for the item.- Specified by:
prototype
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SectionManagedObjectModel,SectionManagedObjectModel.SectionManagedObjectEvent>
- Returns:
- Prototype.
-
item
protected ManagedObjectItem item(SectionManagedObjectModel model)
Description copied from class:AbstractConfigurableItem
Creates an item from theModel
.- Specified by:
item
in classAbstractConfigurableItem<SectionModel,SectionModel.SectionEvent,SectionChanges,SectionManagedObjectModel,SectionManagedObjectModel.SectionManagedObjectEvent,ManagedObjectItem>
- Parameters:
model
-Model
. May benull
if create aModel
.- Returns:
- Item.
-
extract
public AbstractItem.IdeExtractor extract()
Description copied from class:AbstractItem
- Specified by:
extract
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SectionManagedObjectModel,SectionManagedObjectModel.SectionManagedObjectEvent>
- Returns:
AbstractItem.IdeExtractor
.
-
loadToParent
public void loadToParent(SectionModel parentModel, SectionManagedObjectModel itemModel)
Description copied from class:AbstractItem
Loads theModel
to the parentModel
. This allows for constructing a prototype model for editing preferences of theAbstractIdeEclipseEditor
.- Specified by:
loadToParent
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SectionManagedObjectModel,SectionManagedObjectModel.SectionManagedObjectEvent>
- Parameters:
parentModel
- ParentModel
.itemModel
- ItemModel
.
-
visual
public javafx.scene.layout.Pane visual(SectionManagedObjectModel model, AdaptedChildVisualFactoryContext<SectionManagedObjectModel> context)
Description copied from class:AbstractItem
Creates the visual for theModel
.- Specified by:
visual
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SectionManagedObjectModel,SectionManagedObjectModel.SectionManagedObjectEvent>
- Parameters:
model
-Model
.context
-AdaptedChildVisualFactoryContext
.- Returns:
Node
for the visual.
-
label
public AbstractItem.IdeLabeller label()
Description copied from class:AbstractItem
Obtains theAbstractItem.IdeLabeller
for theModel
.- Specified by:
label
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SectionManagedObjectModel,SectionManagedObjectModel.SectionManagedObjectEvent>
- Returns:
AbstractItem.IdeLabeller
.
-
style
public java.lang.String style()
Description copied from class:AbstractItem
Obtains the style for the display of theModel
.- Overrides:
style
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SectionManagedObjectModel,SectionManagedObjectModel.SectionManagedObjectEvent>
- Returns:
- Style for the display of the
Model
.
-
configure
public AbstractConfigurableItem.IdeConfigurer configure()
Description copied from class:AbstractConfigurableItem
Obtains the item configuration.- Specified by:
configure
in classAbstractConfigurableItem<SectionModel,SectionModel.SectionEvent,SectionChanges,SectionManagedObjectModel,SectionManagedObjectModel.SectionManagedObjectEvent,ManagedObjectItem>
- Returns:
AbstractConfigurableItem.IdeConfigurer
for the item configuration.
-
children
protected void children(java.util.List<AbstractItem.IdeChildrenGroup> childGroups)
Description copied from class:AbstractItem
Loads theAbstractItem.IdeChildrenGroup
instances.- Overrides:
children
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SectionManagedObjectModel,SectionManagedObjectModel.SectionManagedObjectEvent>
- Parameters:
childGroups
-AbstractItem.IdeChildrenGroup
instances.
-
connections
protected void connections(java.util.List<AbstractItem.IdeConnectionTarget<? extends ConnectionModel,?,?>> connections)
Description copied from class:AbstractItem
Loads theAbstractItem.IdeConnectionTarget
instances (created fromAbstractItem.IdeConnection
instances).- Overrides:
connections
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SectionManagedObjectModel,SectionManagedObjectModel.SectionManagedObjectEvent>
- Parameters:
connections
-AbstractItem.IdeConnection
instances.
-
-