Package net.officefloor.gef.woof
Class WoofTemplateItem
- java.lang.Object
-
- net.officefloor.gef.ide.editor.AbstractItem<R,O,R,RE,M,E>
-
- net.officefloor.gef.ide.editor.AbstractConfigurableItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofTemplateModel,WoofTemplateModel.WoofTemplateEvent,WoofTemplateItem>
-
- net.officefloor.gef.woof.WoofTemplateItem
-
- All Implemented Interfaces:
ConfigurableItem<WoofTemplateItem>
public class WoofTemplateItem extends AbstractConfigurableItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofTemplateModel,WoofTemplateModel.WoofTemplateEvent,WoofTemplateItem>
Configuration for theWoofTemplateModel
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.gef.ide.editor.AbstractConfigurableItem
AbstractConfigurableItem.ConfigurableModelContext<O,M>, AbstractConfigurableItem.IdeConfiguration<O,M extends Model,I>, AbstractConfigurableItem.IdeConfigurer, AbstractConfigurableItem.ItemActioner<O,M>, AbstractConfigurableItem.ItemConfigurer<O,M,I>
-
Nested classes/interfaces inherited from class net.officefloor.gef.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 Modifier and Type Field Description java.lang.String
logicClass
LogicClass
.-
Fields inherited from class net.officefloor.gef.ide.editor.AbstractItem
builder
-
-
Constructor Summary
Constructors Constructor Description WoofTemplateItem()
-
Method Summary
All 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()
WoofTemplateItem
item(WoofTemplateModel model)
Creates an item from theModel
.AbstractItem.IdeLabeller
label()
Obtains theAbstractItem.IdeLabeller
for theModel
.protected void
loadStyles(java.util.List<AbstractItem.IdeStyle> styles)
Default implementation ofAbstractItem.style()
will invoke this to load styles.void
loadToParent(WoofModel parentModel, WoofTemplateModel itemModel)
WoofTemplateModel
prototype()
Creates the prototype for the item.javafx.scene.layout.Pane
visual(WoofTemplateModel model, AdaptedChildVisualFactoryContext<WoofTemplateModel> context)
Creates the visual for theModel
.-
Methods inherited from class net.officefloor.gef.ide.editor.AbstractConfigurableItem
createAdaptedParent, extractIdeConfiguration, furtherAdapt
-
Methods inherited from class net.officefloor.gef.ide.editor.AbstractItem
createChild, furtherAdapt, getBuilder, getChildrenGroups, getConfigurableContext, getConnections, getPreferenceStyleId, init, style, translateFromCommaSeparatedList, translateToCommaSeparateList, translateToNameMappings, translateToPropertyList
-
-
-
-
Method Detail
-
prototype
public WoofTemplateModel prototype()
Description copied from class:AbstractItem
Creates the prototype for the item.- Specified by:
prototype
in classAbstractItem<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofTemplateModel,WoofTemplateModel.WoofTemplateEvent>
- Returns:
- Prototype.
-
extract
public AbstractItem.IdeExtractor extract()
Description copied from class:AbstractItem
- Specified by:
extract
in classAbstractItem<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofTemplateModel,WoofTemplateModel.WoofTemplateEvent>
- Returns:
AbstractItem.IdeExtractor
.
-
visual
public javafx.scene.layout.Pane visual(WoofTemplateModel model, AdaptedChildVisualFactoryContext<WoofTemplateModel> context)
Description copied from class:AbstractItem
Creates the visual for theModel
.- Specified by:
visual
in classAbstractItem<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofTemplateModel,WoofTemplateModel.WoofTemplateEvent>
- 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<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofTemplateModel,WoofTemplateModel.WoofTemplateEvent>
- Returns:
AbstractItem.IdeLabeller
.
-
loadToParent
public void loadToParent(WoofModel parentModel, WoofTemplateModel itemModel)
Description copied from class:AbstractItem
Loads theModel
to the parentModel
. This allows for constructing a prototype model for editing preferences of theAbstractAdaptedIdeEditor
.- Specified by:
loadToParent
in classAbstractItem<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofTemplateModel,WoofTemplateModel.WoofTemplateEvent>
- Parameters:
parentModel
- ParentModel
.itemModel
- ItemModel
.
-
item
public WoofTemplateItem item(WoofTemplateModel model)
Description copied from class:AbstractConfigurableItem
Creates an item from theModel
.- Specified by:
item
in classAbstractConfigurableItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofTemplateModel,WoofTemplateModel.WoofTemplateEvent,WoofTemplateItem>
- Parameters:
model
-Model
. May benull
if create aModel
.- Returns:
- Item.
-
loadStyles
protected void loadStyles(java.util.List<AbstractItem.IdeStyle> styles)
Description copied from class:AbstractItem
Default implementation ofAbstractItem.style()
will invoke this to load styles.- Overrides:
loadStyles
in classAbstractItem<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofTemplateModel,WoofTemplateModel.WoofTemplateEvent>
- Parameters:
styles
-List
to be loaded with theAbstractItem.IdeStyle
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<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofTemplateModel,WoofTemplateModel.WoofTemplateEvent>
- Parameters:
connections
-AbstractItem.IdeConnection
instances.
-
configure
public AbstractConfigurableItem.IdeConfigurer configure()
Description copied from class:AbstractConfigurableItem
Obtains the item configuration.- Specified by:
configure
in classAbstractConfigurableItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofTemplateModel,WoofTemplateModel.WoofTemplateEvent,WoofTemplateItem>
- 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<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofTemplateModel,WoofTemplateModel.WoofTemplateEvent>
- Parameters:
childGroups
-AbstractItem.IdeChildrenGroup
instances.
-
-