public class RelatedEntitiesBuilder
extends java.lang.Object
RelatedEntitiesBuilder builder = relatedEntitiesAPI.builder(this);
Screen colourBrowser = builder
.withEntityClass(Car.class)
.withProperty("colour")
.withSelectedEntities(carsTable.getSelected())
.withScreenId("ColourBrowser")
.build();
colourBrowser.show();
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class |
entityClass |
protected java.lang.String |
filterCaption |
protected java.util.function.Function<RelatedEntitiesBuilder,Screen> |
handler |
protected Screens.LaunchMode |
launchMode |
protected MetaClass |
metaClass |
protected MetaProperty |
metaProperty |
protected ScreenOptions |
options |
protected FrameOwner |
origin |
protected java.lang.String |
property |
protected java.lang.String |
screenId |
protected java.util.Collection<? extends Entity> |
selectedEntities |
Constructor and Description |
---|
RelatedEntitiesBuilder(FrameOwner origin,
java.util.function.Function<RelatedEntitiesBuilder,Screen> handler) |
RelatedEntitiesBuilder(RelatedEntitiesBuilder builder) |
Modifier and Type | Method and Description |
---|---|
Screen |
build()
Builds the screen.
|
java.lang.Class |
getEntityClass() |
java.lang.String |
getFilterCaption() |
Screens.LaunchMode |
getLaunchMode() |
MetaClass |
getMetaClass() |
MetaProperty |
getMetaProperty() |
ScreenOptions |
getOptions() |
FrameOwner |
getOrigin() |
java.lang.String |
getProperty() |
java.lang.String |
getScreenId() |
java.util.Collection<? extends Entity> |
getSelectedEntities() |
RelatedEntitiesBuilder |
withEntityClass(java.lang.Class entityClass)
Sets class of entity for which you want to see related entities.
|
RelatedEntitiesBuilder |
withFilterCaption(java.lang.String filterCaption)
Sets caption to filter in opened screen.
|
RelatedEntitiesBuilder |
withLaunchMode(Screens.LaunchMode launchMode)
Sets
Screens.LaunchMode for the related entities screen and returns the builder for chaining. |
RelatedEntitiesBuilder |
withMetaClass(MetaClass metaClass)
Sets MetaClass of entity for which you want to see related entities.
|
RelatedEntitiesBuilder |
withMetaProperty(MetaProperty metaProperty)
Sets MetaProperty from which you want to show related entities.
|
RelatedEntitiesBuilder |
withOpenMode(OpenMode openMode)
Sets
OpenMode for the lookup screen and returns the builder for chaining. |
RelatedEntitiesBuilder |
withOptions(ScreenOptions options)
Sets
ScreenOptions for the lookup screen and returns the builder for chaining. |
RelatedEntitiesBuilder |
withProperty(java.lang.String property)
Sets property from which you want to show related entities.
|
<S extends Screen> |
withScreenClass(java.lang.Class<S> screenClass)
Sets screen class and returns the
RelatedEntitiesClassBuilder for chaining. |
RelatedEntitiesBuilder |
withScreenId(java.lang.String screenId)
Sets screen id and returns the builder for chaining.
|
RelatedEntitiesBuilder |
withSelectedEntities(java.util.Collection<? extends Entity> selectedEntities)
Sets collection of selected items.
|
protected final java.util.function.Function<RelatedEntitiesBuilder,Screen> handler
protected java.lang.String property
protected MetaProperty metaProperty
protected java.lang.Class entityClass
protected MetaClass metaClass
protected Screens.LaunchMode launchMode
protected java.lang.String screenId
protected FrameOwner origin
protected ScreenOptions options
protected java.util.Collection<? extends Entity> selectedEntities
protected java.lang.String filterCaption
public RelatedEntitiesBuilder(RelatedEntitiesBuilder builder)
public RelatedEntitiesBuilder(FrameOwner origin, java.util.function.Function<RelatedEntitiesBuilder,Screen> handler)
public java.lang.String getProperty()
withProperty(String)
public MetaProperty getMetaProperty()
withMetaProperty(MetaProperty)
public java.lang.Class getEntityClass()
withEntityClass(Class)
public Screens.LaunchMode getLaunchMode()
withLaunchMode(Screens.LaunchMode)
public java.lang.String getScreenId()
withScreenId(String)
public FrameOwner getOrigin()
public ScreenOptions getOptions()
withOptions(ScreenOptions)
public MetaClass getMetaClass()
withMetaClass(MetaClass)
public java.util.Collection<? extends Entity> getSelectedEntities()
withSelectedEntities(Collection)
public java.lang.String getFilterCaption()
withFilterCaption(String)
public RelatedEntitiesBuilder withProperty(java.lang.String property)
property
- propertypublic RelatedEntitiesBuilder withMetaProperty(MetaProperty metaProperty)
metaProperty
- meta propertypublic RelatedEntitiesBuilder withEntityClass(java.lang.Class entityClass)
entityClass
- classpublic RelatedEntitiesBuilder withLaunchMode(Screens.LaunchMode launchMode)
Screens.LaunchMode
for the related entities screen and returns the builder for chaining.
For example: builder.withLaunchMode(OpenMode.DIALOG).build();
launchMode
- launch modepublic RelatedEntitiesBuilder withOpenMode(OpenMode openMode)
OpenMode
for the lookup screen and returns the builder for chaining.
For example: builder.withOpenMode(OpenMode.DIALOG).build();
openMode
- open modepublic RelatedEntitiesBuilder withScreenId(java.lang.String screenId)
screenId
- identifier of the screenpublic <S extends Screen> RelatedEntitiesClassBuilder<S> withScreenClass(java.lang.Class<S> screenClass)
RelatedEntitiesClassBuilder
for chaining.screenClass
- class of the screen controllerpublic RelatedEntitiesBuilder withOptions(ScreenOptions options)
ScreenOptions
for the lookup screen and returns the builder for chaining.options
- screen optionspublic RelatedEntitiesBuilder withMetaClass(MetaClass metaClass)
metaClass
- meta classpublic RelatedEntitiesBuilder withSelectedEntities(java.util.Collection<? extends Entity> selectedEntities)
selectedEntities
- selected entitiespublic RelatedEntitiesBuilder withFilterCaption(java.lang.String filterCaption)
filterCaption
- captionpublic Screen build()