Package net.officefloor.gef.activity
Class ActivityProcedureItem
- 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<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
-
- net.officefloor.gef.activity.ActivityProcedureItem
-
- All Implemented Interfaces:
ConfigurableItem<ActivityProcedureItem>
public class ActivityProcedureItem extends AbstractProcedureItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
Configuration of theActivityProcedureModel
.- 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 ActivityProcedureItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Change<ActivityProcedureModel>
addProcedure(ActivityChanges operations, java.lang.String name, java.lang.String resource, java.lang.String sourceName, java.lang.String procedure, PropertyList properties, ProcedureType procedureType)
protected ActivityProcedureItem
createItem()
Creates theAbstractProcedureItem
implementation.protected AbstractItem<ActivityModel,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,?,?>
createNextItem()
Creates theProcedure
nextAbstractItem
implementation.protected AbstractItem<ActivityModel,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,?,?>
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(ActivityProcedureModel model)
Obtains theProcedure
name.protected PropertyList
getProcedureProperties(ActivityProcedureModel model)
Obtains theProcedure
PropertyList
.protected java.lang.String
getResource(ActivityProcedureModel model)
Obtains the resource.protected java.lang.String
getSectionName(ActivityProcedureModel model)
Obtains theSubSection
/OfficeSection
name.protected java.lang.String
getSourceName(ActivityProcedureModel model)
Obtains the source name.AbstractItem.IdeLabeller
label()
Obtains theAbstractItem.IdeLabeller
for theModel
.void
loadToParent(ActivityModel parentModel, ActivityProcedureModel itemModel)
ActivityProcedureModel
prototype()
Creates the prototype for the item.protected Change<ActivityProcedureModel>
refactorProcedure(ActivityChanges operations, ActivityProcedureModel 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<ActivityProcedureModel>
removeProcedure(ActivityChanges operations, ActivityProcedureModel 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 ActivityProcedureModel prototype()
Description copied from class:AbstractItem
Creates the prototype for the item.- Specified by:
prototype
in classAbstractItem<ActivityModel,ActivityChanges,ActivityModel,ActivityModel.ActivityEvent,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent>
- Returns:
- Prototype.
-
extract
public AbstractItem.IdeExtractor extract()
Description copied from class:AbstractItem
- Specified by:
extract
in classAbstractItem<ActivityModel,ActivityChanges,ActivityModel,ActivityModel.ActivityEvent,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent>
- Returns:
AbstractItem.IdeExtractor
.
-
loadToParent
public void loadToParent(ActivityModel parentModel, ActivityProcedureModel 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<ActivityModel,ActivityChanges,ActivityModel,ActivityModel.ActivityEvent,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent>
- 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<ActivityModel,ActivityChanges,ActivityModel,ActivityModel.ActivityEvent,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent>
- Returns:
AbstractItem.IdeLabeller
.
-
createItem
protected ActivityProcedureItem createItem()
Description copied from class:AbstractProcedureItem
Creates theAbstractProcedureItem
implementation.- Specified by:
createItem
in classAbstractProcedureItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
- Returns:
AbstractProcedureItem
implementation.
-
getSectionName
protected java.lang.String getSectionName(ActivityProcedureModel model)
Description copied from class:AbstractProcedureItem
Obtains theSubSection
/OfficeSection
name.- Specified by:
getSectionName
in classAbstractProcedureItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
- Parameters:
model
-Model
.- Returns:
SubSection
/OfficeSection
name.
-
getResource
protected java.lang.String getResource(ActivityProcedureModel model)
Description copied from class:AbstractProcedureItem
Obtains the resource.- Specified by:
getResource
in classAbstractProcedureItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
- Parameters:
model
-Model
.- Returns:
- Resource.
-
getSourceName
protected java.lang.String getSourceName(ActivityProcedureModel model)
Description copied from class:AbstractProcedureItem
Obtains the source name.- Specified by:
getSourceName
in classAbstractProcedureItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
- Parameters:
model
-Model
.- Returns:
- Source name.
-
getProcedureName
protected java.lang.String getProcedureName(ActivityProcedureModel model)
Description copied from class:AbstractProcedureItem
Obtains theProcedure
name.- Specified by:
getProcedureName
in classAbstractProcedureItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
- Parameters:
model
-Model
.- Returns:
Procedure
name.
-
getProcedureProperties
protected PropertyList getProcedureProperties(ActivityProcedureModel model)
Description copied from class:AbstractProcedureItem
Obtains theProcedure
PropertyList
.- Specified by:
getProcedureProperties
in classAbstractProcedureItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
- 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<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
- Returns:
- Input
ConnectionModel
Class
instances.
-
createNextItem
protected AbstractItem<ActivityModel,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,?,?> createNextItem()
Description copied from class:AbstractProcedureItem
Creates theProcedure
nextAbstractItem
implementation.- Specified by:
createNextItem
in classAbstractProcedureItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
- Returns:
Procedure
nextAbstractItem
implementation.
-
createOutputItem
protected AbstractItem<ActivityModel,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,?,?> createOutputItem()
Description copied from class:AbstractProcedureItem
Creates theProcedure
outputAbstractItem
implementation.- Specified by:
createOutputItem
in classAbstractProcedureItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
- Returns:
Procedure
outputAbstractItem
implementation.
-
addProcedure
protected Change<ActivityProcedureModel> addProcedure(ActivityChanges 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<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
- 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<ActivityProcedureModel> refactorProcedure(ActivityChanges operations, ActivityProcedureModel 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<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
- 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<ActivityProcedureModel> removeProcedure(ActivityChanges operations, ActivityProcedureModel model)
Description copied from class:AbstractProcedureItem
- Specified by:
removeProcedure
in classAbstractProcedureItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,ActivityProcedureModel,ActivityProcedureModel.ActivityProcedureEvent,ActivityProcedureItem>
- Parameters:
operations
- Operations.model
-Model
to remove.- Returns:
Change
to removeProcedure
.
-
-