Package net.officefloor.gef.woof
Class WoofProcedureItem
- java.lang.Object
-
- net.officefloor.gef.ide.editor.AbstractItem<R,O,R,RE,M,E>
-
- net.officefloor.gef.ide.editor.AbstractConfigurableItem<R,RE,O,M,E,I>
-
- net.officefloor.gef.item.AbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
-
- net.officefloor.gef.woof.WoofProcedureItem
-
- All Implemented Interfaces:
ConfigurableItem<WoofProcedureItem>
public class WoofProcedureItem extends AbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
Configuration for theWoofProcedureModel
.- 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 inherited from class net.officefloor.gef.item.AbstractProcedureItem
name, outputNameMapping, procedure, procedures, procedureType, properties, resource, sourceName
-
Fields inherited from class net.officefloor.gef.ide.editor.AbstractItem
builder
-
-
Constructor Summary
Constructors Constructor Description WoofProcedureItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Change<WoofProcedureModel>
addProcedure(WoofChanges operations, java.lang.String name, java.lang.String resource, java.lang.String sourceName, java.lang.String procedure, PropertyList properties, ProcedureType procedureType)
protected WoofProcedureItem
createItem()
Creates theAbstractProcedureItem
implementation.protected AbstractItem<WoofModel,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,?,?>
createNextItem()
Creates theProcedure
nextAbstractItem
implementation.protected AbstractItem<WoofModel,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,?,?>
createOutputItem()
Creates theProcedure
outputAbstractItem
implementation.AbstractItem.IdeExtractor
extract()
protected java.lang.Class<? extends ConnectionModel>[]
getInputConnectionClasses()
Obtains the inputConnectionModel
Class
instances.protected java.lang.String
getProcedureName(WoofProcedureModel model)
Obtains theProcedure
name.protected PropertyList
getProcedureProperties(WoofProcedureModel model)
Obtains theProcedure
PropertyList
.protected java.lang.String
getResource(WoofProcedureModel model)
Obtains the resource.protected java.lang.String
getSectionName(WoofProcedureModel model)
Obtains theSubSection
/OfficeSection
name.protected java.lang.String
getSourceName(WoofProcedureModel model)
Obtains the source name.AbstractItem.IdeLabeller
label()
Obtains theAbstractItem.IdeLabeller
for theModel
.void
loadToParent(WoofModel parentModel, WoofProcedureModel itemModel)
WoofProcedureModel
prototype()
Creates the prototype for the item.protected Change<WoofProcedureModel>
refactorProcedure(WoofChanges operations, WoofProcedureModel model, java.lang.String name, java.lang.String resource, java.lang.String sourceName, java.lang.String procedure, PropertyList properties, ProcedureType procedureType, java.util.Map<java.lang.String,java.lang.String> outputNameMapping)
protected Change<WoofProcedureModel>
removeProcedure(WoofChanges operations, WoofProcedureModel model)
-
Methods inherited from class net.officefloor.gef.item.AbstractProcedureItem
children, configure, item, loadProcedures, loadProcedureType, loadStyles, visual
-
Methods inherited from class net.officefloor.gef.ide.editor.AbstractConfigurableItem
createAdaptedParent, extractIdeConfiguration, furtherAdapt
-
Methods inherited from class net.officefloor.gef.ide.editor.AbstractItem
connections, createChild, furtherAdapt, getBuilder, getChildrenGroups, getConfigurableContext, getConnections, getPreferenceStyleId, init, style, translateFromCommaSeparatedList, translateToCommaSeparateList, translateToNameMappings, translateToPropertyList
-
-
-
-
Method Detail
-
prototype
public WoofProcedureModel prototype()
Description copied from class:AbstractItem
Creates the prototype for the item.- Specified by:
prototype
in classAbstractItem<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent>
- Returns:
- Prototype.
-
extract
public AbstractItem.IdeExtractor extract()
Description copied from class:AbstractItem
- Specified by:
extract
in classAbstractItem<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent>
- Returns:
AbstractItem.IdeExtractor
.
-
loadToParent
public void loadToParent(WoofModel parentModel, WoofProcedureModel 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,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent>
- Parameters:
parentModel
- ParentModel
.itemModel
- ItemModel
.
-
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,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent>
- Returns:
AbstractItem.IdeLabeller
.
-
createItem
protected WoofProcedureItem createItem()
Description copied from class:AbstractProcedureItem
Creates theAbstractProcedureItem
implementation.- Specified by:
createItem
in classAbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
- Returns:
AbstractProcedureItem
implementation.
-
getSectionName
protected java.lang.String getSectionName(WoofProcedureModel model)
Description copied from class:AbstractProcedureItem
Obtains theSubSection
/OfficeSection
name.- Specified by:
getSectionName
in classAbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
- Parameters:
model
-Model
.- Returns:
SubSection
/OfficeSection
name.
-
getResource
protected java.lang.String getResource(WoofProcedureModel model)
Description copied from class:AbstractProcedureItem
Obtains the resource.- Specified by:
getResource
in classAbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
- Parameters:
model
-Model
.- Returns:
- Resource.
-
getSourceName
protected java.lang.String getSourceName(WoofProcedureModel model)
Description copied from class:AbstractProcedureItem
Obtains the source name.- Specified by:
getSourceName
in classAbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
- Parameters:
model
-Model
.- Returns:
- Source name.
-
getProcedureName
protected java.lang.String getProcedureName(WoofProcedureModel model)
Description copied from class:AbstractProcedureItem
Obtains theProcedure
name.- Specified by:
getProcedureName
in classAbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
- Parameters:
model
-Model
.- Returns:
Procedure
name.
-
getProcedureProperties
protected PropertyList getProcedureProperties(WoofProcedureModel model)
Description copied from class:AbstractProcedureItem
Obtains theProcedure
PropertyList
.- Specified by:
getProcedureProperties
in classAbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
- Parameters:
model
-Model
.- Returns:
Procedure
PropertyList
.
-
getInputConnectionClasses
protected java.lang.Class<? extends ConnectionModel>[] getInputConnectionClasses()
Description copied from class:AbstractProcedureItem
Obtains the inputConnectionModel
Class
instances.- Specified by:
getInputConnectionClasses
in classAbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
- Returns:
- Input
ConnectionModel
Class
instances.
-
createNextItem
protected AbstractItem<WoofModel,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,?,?> createNextItem()
Description copied from class:AbstractProcedureItem
Creates theProcedure
nextAbstractItem
implementation.- Specified by:
createNextItem
in classAbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
- Returns:
Procedure
nextAbstractItem
implementation.
-
createOutputItem
protected AbstractItem<WoofModel,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,?,?> createOutputItem()
Description copied from class:AbstractProcedureItem
Creates theProcedure
outputAbstractItem
implementation.- Specified by:
createOutputItem
in classAbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
- Returns:
Procedure
outputAbstractItem
implementation.
-
addProcedure
protected Change<WoofProcedureModel> addProcedure(WoofChanges operations, java.lang.String name, java.lang.String resource, java.lang.String sourceName, java.lang.String procedure, PropertyList properties, ProcedureType procedureType)
Description copied from class:AbstractProcedureItem
- Specified by:
addProcedure
in classAbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
- Parameters:
operations
- Operations.name
-SubSection
/OfficeSection
name.resource
- Resource.sourceName
- Source name.procedure
-Procedure
name.properties
-PropertyList
.procedureType
-ProcedureType
.- Returns:
Change
to addProcedure
.
-
refactorProcedure
protected Change<WoofProcedureModel> refactorProcedure(WoofChanges operations, WoofProcedureModel model, java.lang.String name, java.lang.String resource, java.lang.String sourceName, java.lang.String procedure, PropertyList properties, ProcedureType procedureType, java.util.Map<java.lang.String,java.lang.String> outputNameMapping)
Description copied from class:AbstractProcedureItem
- Specified by:
refactorProcedure
in classAbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
- Parameters:
operations
- Operations.model
-Model
to refactor.name
-SubSection
/OfficeSection
name.resource
- Resource.sourceName
- Source name.procedure
-Procedure
name.properties
-PropertyList
.procedureType
-ProcedureType
.outputNameMapping
-Procedure
output name mapping.- Returns:
Change
to refactorProcedure
.
-
removeProcedure
protected Change<WoofProcedureModel> removeProcedure(WoofChanges operations, WoofProcedureModel model)
Description copied from class:AbstractProcedureItem
- Specified by:
removeProcedure
in classAbstractProcedureItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofProcedureModel,WoofProcedureModel.WoofProcedureEvent,WoofProcedureItem>
- Parameters:
operations
- Operations.model
-Model
to remove.- Returns:
Change
to removeProcedure
.
-
-