Package net.officefloor.gef.woof
Class WoofExceptionItem
- 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.AbstractExceptionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofExceptionModel,WoofExceptionModel.WoofExceptionEvent,WoofExceptionItem>
-
- net.officefloor.gef.woof.WoofExceptionItem
-
- All Implemented Interfaces:
ConfigurableItem<WoofExceptionItem>
public class WoofExceptionItem extends AbstractExceptionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofExceptionModel,WoofExceptionModel.WoofExceptionEvent,WoofExceptionItem>
Configuration for theWoofExceptionModel
.- 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.AbstractExceptionItem
exceptionClassName
-
Fields inherited from class net.officefloor.gef.ide.editor.AbstractItem
builder
-
-
Constructor Summary
Constructors Constructor Description WoofExceptionItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Change<WoofExceptionModel>
addException(WoofChanges operations, java.lang.String exceptionClassName)
Creates aChange
to add anException
.protected void
connections(java.util.List<AbstractItem.IdeConnectionTarget<? extends ConnectionModel,?,?>> connections)
Loads theAbstractItem.IdeConnectionTarget
instances (created fromAbstractItem.IdeConnection
instances).protected WoofExceptionItem
createItem()
Creates theAbstractExceptionItem
implementation.AbstractItem.IdeExtractor
extract()
protected java.lang.String
getExceptionClassName(WoofExceptionModel model)
Obtains theException
Class
name.protected java.lang.Class<? extends ConnectionModel>[]
getInputConnectionClasses()
Obtains the inputConnectionModel
Class
instances.AbstractItem.IdeLabeller
label()
Obtains theAbstractItem.IdeLabeller
for theModel
.void
loadToParent(WoofModel parentModel, WoofExceptionModel itemModel)
WoofExceptionModel
prototype()
Creates the prototype for the item.protected Change<WoofExceptionModel>
refactorException(WoofChanges operations, WoofExceptionModel model, java.lang.String exceptionClassName)
Creates aChange
to refactor theException
.protected Change<WoofExceptionModel>
removeException(WoofChanges operations, WoofExceptionModel model)
Creates aChange
to remove theException
.-
Methods inherited from class net.officefloor.gef.item.AbstractExceptionItem
configure, item, 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
children, createChild, furtherAdapt, getBuilder, getChildrenGroups, getConfigurableContext, getConnections, getPreferenceStyleId, init, style, translateFromCommaSeparatedList, translateToCommaSeparateList, translateToNameMappings, translateToPropertyList
-
-
-
-
Method Detail
-
prototype
public WoofExceptionModel prototype()
Description copied from class:AbstractItem
Creates the prototype for the item.- Specified by:
prototype
in classAbstractItem<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofExceptionModel,WoofExceptionModel.WoofExceptionEvent>
- Returns:
- Prototype.
-
extract
public AbstractItem.IdeExtractor extract()
Description copied from class:AbstractItem
- Specified by:
extract
in classAbstractItem<WoofModel,WoofChanges,WoofModel,WoofModel.WoofEvent,WoofExceptionModel,WoofExceptionModel.WoofExceptionEvent>
- Returns:
AbstractItem.IdeExtractor
.
-
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,WoofExceptionModel,WoofExceptionModel.WoofExceptionEvent>
- Returns:
AbstractItem.IdeLabeller
.
-
loadToParent
public void loadToParent(WoofModel parentModel, WoofExceptionModel 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,WoofExceptionModel,WoofExceptionModel.WoofExceptionEvent>
- Parameters:
parentModel
- ParentModel
.itemModel
- ItemModel
.
-
createItem
protected WoofExceptionItem createItem()
Description copied from class:AbstractExceptionItem
Creates theAbstractExceptionItem
implementation.- Specified by:
createItem
in classAbstractExceptionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofExceptionModel,WoofExceptionModel.WoofExceptionEvent,WoofExceptionItem>
- Returns:
AbstractExceptionItem
implementation.
-
getExceptionClassName
protected java.lang.String getExceptionClassName(WoofExceptionModel model)
Description copied from class:AbstractExceptionItem
Obtains theException
Class
name.- Specified by:
getExceptionClassName
in classAbstractExceptionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofExceptionModel,WoofExceptionModel.WoofExceptionEvent,WoofExceptionItem>
- Parameters:
model
-Model
.- Returns:
Exception
Class
name.
-
getInputConnectionClasses
protected java.lang.Class<? extends ConnectionModel>[] getInputConnectionClasses()
Description copied from class:AbstractExceptionItem
Obtains the inputConnectionModel
Class
instances.- Specified by:
getInputConnectionClasses
in classAbstractExceptionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofExceptionModel,WoofExceptionModel.WoofExceptionEvent,WoofExceptionItem>
- Returns:
- Input
ConnectionModel
Class
instances.
-
addException
protected Change<WoofExceptionModel> addException(WoofChanges operations, java.lang.String exceptionClassName)
Description copied from class:AbstractExceptionItem
Creates aChange
to add anException
.- Specified by:
addException
in classAbstractExceptionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofExceptionModel,WoofExceptionModel.WoofExceptionEvent,WoofExceptionItem>
- Parameters:
operations
- Operations.exceptionClassName
-Exception
Class
name.- Returns:
Change
to add anException
.
-
refactorException
protected Change<WoofExceptionModel> refactorException(WoofChanges operations, WoofExceptionModel model, java.lang.String exceptionClassName)
Description copied from class:AbstractExceptionItem
Creates aChange
to refactor theException
.- Specified by:
refactorException
in classAbstractExceptionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofExceptionModel,WoofExceptionModel.WoofExceptionEvent,WoofExceptionItem>
- Parameters:
operations
- Operations.model
-Model
to refactor.exceptionClassName
-Exception
Class
name.- Returns:
Change
to refactor theException
.
-
removeException
protected Change<WoofExceptionModel> removeException(WoofChanges operations, WoofExceptionModel model)
Description copied from class:AbstractExceptionItem
Creates aChange
to remove theException
.- Specified by:
removeException
in classAbstractExceptionItem<WoofModel,WoofModel.WoofEvent,WoofChanges,WoofExceptionModel,WoofExceptionModel.WoofExceptionEvent,WoofExceptionItem>
- Parameters:
operations
- Operations.model
-Model
to remove.- Returns:
Change
to remove theException
.
-
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,WoofExceptionModel,WoofExceptionModel.WoofExceptionEvent>
- Parameters:
connections
-AbstractItem.IdeConnection
instances.
-
-