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 abstractExceptionitem.- 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.StringexceptionClassNameExceptionClass.-
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 aChangeto add anException.AbstractConfigurableItem.IdeConfigurerconfigure()Obtains the item configuration.protected abstract IcreateItem()Creates theAbstractExceptionItemimplementation.protected abstract java.lang.StringgetExceptionClassName(M model)Obtains theExceptionClassname.protected abstract java.lang.Class<? extends ConnectionModel>[]getInputConnectionClasses()Obtains the inputConnectionModelClassinstances.Iitem(M model)Creates an item from theModel.protected voidloadStyles(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 aChangeto refactor theException.protected abstract Change<M>removeException(O operations, M model)Creates aChangeto remove theException.javafx.scene.layout.Panevisual(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 theAbstractExceptionItemimplementation.- Returns:
AbstractExceptionItemimplementation.
-
getExceptionClassName
protected abstract java.lang.String getExceptionClassName(M model)
Obtains theExceptionClassname.- Parameters:
model-Model.- Returns:
ExceptionClassname.
-
getInputConnectionClasses
protected abstract java.lang.Class<? extends ConnectionModel>[] getInputConnectionClasses()
Obtains the inputConnectionModelClassinstances.- Returns:
- Input
ConnectionModelClassinstances.
-
addException
protected abstract Change<M> addException(O operations, java.lang.String exceptionClassName)
Creates aChangeto add anException.- Parameters:
operations- Operations.exceptionClassName-ExceptionClassname.- Returns:
Changeto add anException.
-
refactorException
protected abstract Change<M> refactorException(O operations, M model, java.lang.String exceptionClassName)
Creates aChangeto refactor theException.
-
removeException
protected abstract Change<M> removeException(O operations, M model)
Creates aChangeto remove theException.
-
visual
public javafx.scene.layout.Pane visual(M model, AdaptedChildVisualFactoryContext<M> context)
Description copied from class:AbstractItemCreates the visual for theModel.
-
item
public I item(M model)
Description copied from class:AbstractConfigurableItemCreates an item from theModel.
-
loadStyles
protected void loadStyles(java.util.List<AbstractItem.IdeStyle> styles)
Description copied from class:AbstractItemDefault implementation ofAbstractItem.style()will invoke this to load styles.- Overrides:
loadStylesin 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-Listto be loaded with theAbstractItem.IdeStyleinstances.
-
configure
public AbstractConfigurableItem.IdeConfigurer configure()
Description copied from class:AbstractConfigurableItemObtains the item configuration.
-
-