Package net.officefloor.gef.item
Class AbstractExceptionItem<R extends Model,RE extends java.lang.Enum<RE>,O,M extends Model,E extends java.lang.Enum<E>,I extends AbstractExceptionItem<R,RE,O,M,E,I>>
- 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<R,RE,O,M,E,I>
-
- All Implemented Interfaces:
ConfigurableItem<I>
- Direct Known Subclasses:
ActivityExceptionItem
,WoofExceptionItem
public abstract class AbstractExceptionItem<R extends Model,RE extends java.lang.Enum<RE>,O,M extends Model,E extends java.lang.Enum<E>,I extends AbstractExceptionItem<R,RE,O,M,E,I>> extends AbstractConfigurableItem<R,RE,O,M,E,I>
Configuration for abstractException
item.- 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 protected java.lang.String
exceptionClassName
Exception
Class
.-
Fields inherited from class net.officefloor.gef.ide.editor.AbstractItem
builder
-
-
Constructor Summary
Constructors Constructor Description AbstractExceptionItem()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Change<M>
addException(O operations, java.lang.String exceptionClassName)
Creates aChange
to add anException
.AbstractConfigurableItem.IdeConfigurer
configure()
Obtains the item configuration.protected abstract I
createItem()
Creates theAbstractExceptionItem
implementation.protected abstract java.lang.String
getExceptionClassName(M model)
Obtains theException
Class
name.protected abstract java.lang.Class<? extends ConnectionModel>[]
getInputConnectionClasses()
Obtains the inputConnectionModel
Class
instances.I
item(M model)
Creates an item from theModel
.protected void
loadStyles(java.util.List<AbstractItem.IdeStyle> styles)
Default implementation ofAbstractItem.style()
will invoke this to load styles.protected abstract Change<M>
refactorException(O operations, M model, java.lang.String exceptionClassName)
Creates aChange
to refactor theException
.protected abstract Change<M>
removeException(O operations, M model)
Creates aChange
to remove theException
.javafx.scene.layout.Pane
visual(M model, AdaptedChildVisualFactoryContext<M> 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
children, connections, createChild, extract, furtherAdapt, getBuilder, getChildrenGroups, getConfigurableContext, getConnections, getPreferenceStyleId, init, label, loadToParent, prototype, style, translateFromCommaSeparatedList, translateToCommaSeparateList, translateToNameMappings, translateToPropertyList
-
-
-
-
Method Detail
-
createItem
protected abstract I createItem()
Creates theAbstractExceptionItem
implementation.- Returns:
AbstractExceptionItem
implementation.
-
getExceptionClassName
protected abstract java.lang.String getExceptionClassName(M model)
Obtains theException
Class
name.- Parameters:
model
-Model
.- Returns:
Exception
Class
name.
-
getInputConnectionClasses
protected abstract java.lang.Class<? extends ConnectionModel>[] getInputConnectionClasses()
Obtains the inputConnectionModel
Class
instances.- Returns:
- Input
ConnectionModel
Class
instances.
-
addException
protected abstract Change<M> addException(O operations, java.lang.String exceptionClassName)
Creates aChange
to add anException
.- Parameters:
operations
- Operations.exceptionClassName
-Exception
Class
name.- Returns:
Change
to add anException
.
-
refactorException
protected abstract Change<M> refactorException(O operations, M model, java.lang.String exceptionClassName)
Creates aChange
to refactor theException
.
-
removeException
protected abstract Change<M> removeException(O operations, M model)
Creates aChange
to remove theException
.
-
visual
public javafx.scene.layout.Pane visual(M model, AdaptedChildVisualFactoryContext<M> context)
Description copied from class:AbstractItem
Creates the visual for theModel
.
-
item
public I item(M model)
Description copied from class:AbstractConfigurableItem
Creates an item from theModel
.
-
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<R extends Model,O,R extends Model,RE extends java.lang.Enum<RE>,M extends Model,E extends java.lang.Enum<E>>
- Parameters:
styles
-List
to be loaded with theAbstractItem.IdeStyle
instances.
-
configure
public AbstractConfigurableItem.IdeConfigurer configure()
Description copied from class:AbstractConfigurableItem
Obtains the item configuration.
-
-