Package net.officefloor.gef.woof
Class WoofSectionItem
- 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.AbstractSectionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,WoofSectionItem>
-
- net.officefloor.gef.woof.WoofSectionItem
-
- All Implemented Interfaces:
ConfigurableItem<WoofSectionItem>
public class WoofSectionItem extends AbstractSectionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,WoofSectionItem>
Configuration for theWoofSectionModel
.- 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.AbstractSectionItem
choice, inputNameMapping, location, name, outputNameMapping, properties, sectionType, sourceClassName
-
Fields inherited from class net.officefloor.gef.ide.editor.AbstractItem
builder
-
-
Constructor Summary
Constructors Constructor Description WoofSectionItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Change<WoofSectionModel>
addSection(WoofChanges operations, java.lang.String name, java.lang.String sourceClassName, java.lang.String location, PropertyList properties, SectionType sectionType)
protected AbstractItem<WoofModel,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,?,?>
createInputItem()
Creates theSectionInput
AbstractItem
implementation.protected WoofSectionItem
createItem()
Creates theAbstractSectionItem
implementation.protected AbstractItem<WoofModel,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,?,?>
createOutputItem()
Creates theSectionOutput
AbstractItem
implementation.AbstractItem.IdeExtractor
extract()
protected java.lang.String
getSectionLocation(WoofSectionModel model)
Obtains the location from theModel
.protected java.lang.String
getSectionName(WoofSectionModel model)
Obtains the name from theModel
.protected PropertyList
getSectionProperties(WoofSectionModel model)
Obtains thePropertyList
from theModel
.protected java.lang.String
getSectionSourceClassName(WoofSectionModel model)
AbstractItem.IdeLabeller
label()
Obtains theAbstractItem.IdeLabeller
for theModel
.void
loadToParent(WoofModel parentModel, WoofSectionModel itemModel)
WoofSectionModel
prototype()
Creates the prototype for the item.protected Change<WoofSectionModel>
refactorSection(WoofChanges operations, WoofSectionModel model, java.lang.String name, java.lang.String sourceClassName, java.lang.String location, PropertyList properties, SectionType sectionType, java.util.Map<java.lang.String,java.lang.String> inputNameMapping, java.util.Map<java.lang.String,java.lang.String> outputNameMapping)
protected Change<WoofSectionModel>
removeSection(WoofChanges operations, WoofSectionModel model)
-
Methods inherited from class net.officefloor.gef.item.AbstractSectionItem
children, configure, item, loadSectionType, 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 WoofSectionModel prototype()
Description copied from class:AbstractItem
Creates the prototype for the item.- Specified by:
prototype
in classAbstractItem<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofSectionModel,WoofSectionModel.WoofSectionEvent>
- Returns:
- Prototype.
-
extract
public AbstractItem.IdeExtractor extract()
Description copied from class:AbstractItem
- Specified by:
extract
in classAbstractItem<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofSectionModel,WoofSectionModel.WoofSectionEvent>
- Returns:
AbstractItem.IdeExtractor
.
-
loadToParent
public void loadToParent(WoofModel parentModel, WoofSectionModel 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,WoofSectionModel,WoofSectionModel.WoofSectionEvent>
- 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,WoofSectionModel,WoofSectionModel.WoofSectionEvent>
- Returns:
AbstractItem.IdeLabeller
.
-
createItem
protected WoofSectionItem createItem()
Description copied from class:AbstractSectionItem
Creates theAbstractSectionItem
implementation.- Specified by:
createItem
in classAbstractSectionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,WoofSectionItem>
- Returns:
AbstractSectionItem
implementation.
-
getSectionName
protected java.lang.String getSectionName(WoofSectionModel model)
Description copied from class:AbstractSectionItem
Obtains the name from theModel
.- Specified by:
getSectionName
in classAbstractSectionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,WoofSectionItem>
- Parameters:
model
-Model
.- Returns:
- Name.
-
getSectionSourceClassName
protected java.lang.String getSectionSourceClassName(WoofSectionModel model)
Description copied from class:AbstractSectionItem
- Specified by:
getSectionSourceClassName
in classAbstractSectionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,WoofSectionItem>
- Parameters:
model
-Model
.- Returns:
SectionSource
Class
name.
-
getSectionLocation
protected java.lang.String getSectionLocation(WoofSectionModel model)
Description copied from class:AbstractSectionItem
Obtains the location from theModel
.- Specified by:
getSectionLocation
in classAbstractSectionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,WoofSectionItem>
- Parameters:
model
-Model
.- Returns:
- Location.
-
getSectionProperties
protected PropertyList getSectionProperties(WoofSectionModel model)
Description copied from class:AbstractSectionItem
Obtains thePropertyList
from theModel
.- Specified by:
getSectionProperties
in classAbstractSectionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,WoofSectionItem>
- Parameters:
model
-Model
.- Returns:
PropertyList
from theModel
.
-
createInputItem
protected AbstractItem<WoofModel,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,?,?> createInputItem()
Description copied from class:AbstractSectionItem
Creates theSectionInput
AbstractItem
implementation.- Specified by:
createInputItem
in classAbstractSectionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,WoofSectionItem>
- Returns:
SectionInput
AbstractItem
implementation.
-
createOutputItem
protected AbstractItem<WoofModel,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,?,?> createOutputItem()
Description copied from class:AbstractSectionItem
Creates theSectionOutput
AbstractItem
implementation.- Specified by:
createOutputItem
in classAbstractSectionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,WoofSectionItem>
- Returns:
SectionOutput
AbstractItem
implementation.
-
addSection
protected Change<WoofSectionModel> addSection(WoofChanges operations, java.lang.String name, java.lang.String sourceClassName, java.lang.String location, PropertyList properties, SectionType sectionType)
Description copied from class:AbstractSectionItem
- Specified by:
addSection
in classAbstractSectionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,WoofSectionItem>
- Parameters:
operations
- Operations.name
- Name.sourceClassName
-SectionSource
Class
name.location
- Location.properties
-PropertyList
.sectionType
-SectionType
.- Returns:
Change
to addSubSection
/OfficeSection
.
-
refactorSection
protected Change<WoofSectionModel> refactorSection(WoofChanges operations, WoofSectionModel model, java.lang.String name, java.lang.String sourceClassName, java.lang.String location, PropertyList properties, SectionType sectionType, java.util.Map<java.lang.String,java.lang.String> inputNameMapping, java.util.Map<java.lang.String,java.lang.String> outputNameMapping)
Description copied from class:AbstractSectionItem
- Specified by:
refactorSection
in classAbstractSectionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,WoofSectionItem>
- Parameters:
operations
- Operations.model
-Model
to refactor.name
- Name.sourceClassName
-SectionSource
Class
name.location
- Location.properties
-PropertyList
.sectionType
-SectionType
.inputNameMapping
-SectionInput
name mapping.outputNameMapping
-SectionOutput
name mapping.- Returns:
Change
to refactorSubSection
/OfficeSection
.
-
removeSection
protected Change<WoofSectionModel> removeSection(WoofChanges operations, WoofSectionModel model)
Description copied from class:AbstractSectionItem
- Specified by:
removeSection
in classAbstractSectionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofSectionModel,WoofSectionModel.WoofSectionEvent,WoofSectionItem>
- Parameters:
operations
- Operations.model
-Model
to remove.- Returns:
Change
to removeSubSection
/OfficeSection
.
-
-