Package net.officefloor.gef.section
Class SubSectionItem
- java.lang.Object
-
- net.officefloor.gef.ide.editor.AbstractItem<R,O,R,RE,M,E>
-
- net.officefloor.gef.ide.editor.AbstractConfigurableItem<SectionModel,SectionModel.SectionEvent,SectionChanges,SubSectionModel,SubSectionModel.SubSectionEvent,SubSectionItem>
-
- net.officefloor.gef.section.SubSectionItem
-
- All Implemented Interfaces:
ConfigurableItem<SubSectionItem>
public class SubSectionItem extends AbstractConfigurableItem<SectionModel,SectionModel.SectionEvent,SectionChanges,SubSectionModel,SubSectionModel.SubSectionEvent,SubSectionItem>
Configuration for theSubSectionModel
.- 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.ide.editor.AbstractItem
builder
-
-
Constructor Summary
Constructors Constructor Description SubSectionItem()
-
Method Summary
-
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, loadStyles, translateFromCommaSeparatedList, translateToCommaSeparateList, translateToNameMappings, translateToPropertyList
-
-
-
-
Method Detail
-
loadSectionType
public static SectionType loadSectionType(SubSectionItem item, EnvironmentBridge envBridge) throws java.lang.Exception
Loads theSectionType
for theSubSectionItem
.- Parameters:
item
-SubSectionItem
.envBridge
-EnvironmentBridge
.- Returns:
SectionType
.- Throws:
java.lang.Exception
- If fails to load theSectionType
.
-
prototype
public SubSectionModel prototype()
Description copied from class:AbstractItem
Creates the prototype for the item.- Specified by:
prototype
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SubSectionModel,SubSectionModel.SubSectionEvent>
- Returns:
- Prototype.
-
extract
public AbstractItem.IdeExtractor extract()
Description copied from class:AbstractItem
- Specified by:
extract
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SubSectionModel,SubSectionModel.SubSectionEvent>
- Returns:
AbstractItem.IdeExtractor
.
-
loadToParent
public void loadToParent(SectionModel parentModel, SubSectionModel 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<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SubSectionModel,SubSectionModel.SubSectionEvent>
- Parameters:
parentModel
- ParentModel
.itemModel
- ItemModel
.
-
visual
public javafx.scene.layout.Pane visual(SubSectionModel model, AdaptedChildVisualFactoryContext<SubSectionModel> context)
Description copied from class:AbstractItem
Creates the visual for theModel
.- Specified by:
visual
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SubSectionModel,SubSectionModel.SubSectionEvent>
- Parameters:
model
-Model
.context
-AdaptedChildVisualFactoryContext
.- Returns:
Node
for the visual.
-
label
public AbstractItem.IdeLabeller label()
Description copied from class:AbstractItem
Obtains theAbstractItem.IdeLabeller
for theModel
.- Specified by:
label
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SubSectionModel,SubSectionModel.SubSectionEvent>
- Returns:
AbstractItem.IdeLabeller
.
-
style
public java.lang.String style()
Description copied from class:AbstractItem
Obtains the style for the display of theModel
.- Overrides:
style
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SubSectionModel,SubSectionModel.SubSectionEvent>
- Returns:
- Style for the display of the
Model
.
-
item
public SubSectionItem item(SubSectionModel model)
Description copied from class:AbstractConfigurableItem
Creates an item from theModel
.- Specified by:
item
in classAbstractConfigurableItem<SectionModel,SectionModel.SectionEvent,SectionChanges,SubSectionModel,SubSectionModel.SubSectionEvent,SubSectionItem>
- Parameters:
model
-Model
. May benull
if create aModel
.- Returns:
- Item.
-
children
protected void children(java.util.List<AbstractItem.IdeChildrenGroup> childGroups)
Description copied from class:AbstractItem
Loads theAbstractItem.IdeChildrenGroup
instances.- Overrides:
children
in classAbstractItem<SectionModel,SectionChanges,SectionModel,SectionModel.SectionEvent,SubSectionModel,SubSectionModel.SubSectionEvent>
- Parameters:
childGroups
-AbstractItem.IdeChildrenGroup
instances.
-
configure
public AbstractConfigurableItem.IdeConfigurer configure()
Description copied from class:AbstractConfigurableItem
Obtains the item configuration.- Specified by:
configure
in classAbstractConfigurableItem<SectionModel,SectionModel.SectionEvent,SectionChanges,SubSectionModel,SubSectionModel.SubSectionEvent,SubSectionItem>
- Returns:
AbstractConfigurableItem.IdeConfigurer
for the item configuration.
-
-