public class VaadinUtilsCommon
extends java.lang.Object
Constructor and Description |
---|
VaadinUtilsCommon() |
Modifier and Type | Method and Description |
---|---|
void |
addTab(ExecutionContext ctx,
RecordHolder tabbedLayout,
RecordHolder tab)
Adds tab to tabbed layout.
|
void |
clear(ExecutionContext ctx,
CollectionHolder viewModels) |
void |
collectGarbage(ExecutionContext ctx) |
RecordHolder |
createAndAdd(ExecutionContext ctx,
java.lang.Object wwhat,
RecordHolder wwhere) |
RecordHolder |
createAndShow(ExecutionContext ctx,
RecordHolder def)
Only popup is supported.
|
ListHolder |
findTopmostComponents(ExecutionContext ctx,
Type type,
RecordHolder root) |
RecordHolder |
getBrowserWindowSize(ExecutionContext ctx) |
ListHolder |
getChildren(ExecutionContext ctx,
RecordHolder def) |
ListHolder |
getTabs(ExecutionContext ctx,
RecordHolder tabbedLayout) |
void |
hideAndDestroy(ExecutionContext ctx,
RecordHolder def)
Hide pop-up.
|
void |
invoke(ExecutionContext ctx,
CollectionHolder targets,
java.lang.String methodName,
ListHolder parameters)
Invoke method on each target container.
|
boolean |
isDescendantOrSelf(ExecutionContext ctx,
RecordHolder parent,
RecordHolder child) |
void |
merge(ExecutionContext ctx,
CollectionHolder viewModels) |
void |
notify(ExecutionContext ctx,
java.lang.String caption,
java.lang.String description,
EnumerationImpl type,
EnumerationImpl alignment,
Decimal delayMillis,
java.lang.String cssStyle,
java.lang.Boolean htmlContentAllowed)
Shows notification.
|
void |
persist(ExecutionContext ctx)
Persist execution contexts.
|
void |
refresh(ExecutionContext ctx,
CollectionHolder components)
Refresh components
|
void |
removeAll(ExecutionContext ctx,
RecordHolder wwhere)
Remove all childs of VerticalLayout, HorizontalLayout or FormLayout
|
void |
removeAndDestroy(ExecutionContext ctx,
RecordHolder wwhat,
RecordHolder wwhere)
Remove and destroy what component.
|
void |
removeTab(ExecutionContext ctx,
RecordHolder tabbedLayout,
RecordHolder tab)
Remove the tab.
|
void |
requestSubmit(ExecutionContext ctx)
Marks the screen for submission.
|
void |
requestSubmitAndNavigate(ExecutionContext ctx,
RecordHolder navigateTo)
Marks the screen for submission and navigate away.
|
void |
selectTab(ExecutionContext ctx,
RecordHolder tabbedLayout,
RecordHolder tab)
Open the tab.
|
void |
showConstraintViolations(ExecutionContext ctx,
ListHolder constraintViolations)
Map constraint violations to visible components.
|
public RecordHolder getBrowserWindowSize(ExecutionContext ctx)
ctx
- public void notify(ExecutionContext ctx, java.lang.String caption, java.lang.String description, EnumerationImpl type, EnumerationImpl alignment, Decimal delayMillis, java.lang.String cssStyle, java.lang.Boolean htmlContentAllowed)
ctx
- caption
- description
- type
- alignment
- delayMillis
- cssStyle
- htmlContentAllowed
- public boolean isDescendantOrSelf(ExecutionContext ctx, RecordHolder parent, RecordHolder child)
ctx
- parent
- child
- true
if the parent
is direct or indirect parent of the child record.
public ListHolder getChildren(ExecutionContext ctx, RecordHolder def)
ctx
- def
- - ui::VerticalLayout, ui::HorizontalLayout or ui::FormLayout recordpublic ListHolder getTabs(ExecutionContext ctx, RecordHolder tabbedLayout)
ctx
- tabbedLayout
- - ui::TabbedLayout recordpublic void addTab(ExecutionContext ctx, RecordHolder tabbedLayout, RecordHolder tab)
ctx
- tabbedLayout
- tab
- public void removeTab(ExecutionContext ctx, RecordHolder tabbedLayout, RecordHolder tab)
ctx
- tabbedLayout
- tab
- public void selectTab(ExecutionContext ctx, RecordHolder tabbedLayout, RecordHolder tab)
ctx
- tabbedLayout
- tab
- public void invoke(ExecutionContext ctx, CollectionHolder targets, java.lang.String methodName, ListHolder parameters)
ctx
- targets
- - a list of ui::Container recordsmethodName
- parameters
- public ListHolder findTopmostComponents(ExecutionContext ctx, Type type, RecordHolder root)
ctx
- type
- root
- type.
public void refresh(ExecutionContext ctx, CollectionHolder components)
ctx
- components
- public void persist(ExecutionContext ctx) throws LspsException
ctx
- LspsException
public void collectGarbage(ExecutionContext ctx) throws LspsException
LspsException
public void requestSubmit(ExecutionContext ctx) throws LspsException
ctx
- LspsException
public void requestSubmitAndNavigate(ExecutionContext ctx, RecordHolder navigateTo) throws LspsException
ctx
- navigateTo
- LspsException
public void merge(ExecutionContext ctx, CollectionHolder viewModels)
ctx
- viewModels
- public void clear(ExecutionContext ctx, CollectionHolder viewModels)
ctx
- viewModels
- public void showConstraintViolations(ExecutionContext ctx, ListHolder constraintViolations)
ctx
- constraintViolations
- public RecordHolder createAndShow(ExecutionContext ctx, RecordHolder def)
ctx
- def
- public void hideAndDestroy(ExecutionContext ctx, RecordHolder def)
ctx
- def
- public RecordHolder createAndAdd(ExecutionContext ctx, java.lang.Object wwhat, RecordHolder wwhere)
ctx
- wwhat
- - ui componentwwhere
- ui::VerticalLayout, ui::HorizontalLayout or ui::FormLayout componentpublic void removeAndDestroy(ExecutionContext ctx, RecordHolder wwhat, RecordHolder wwhere)
ctx
- wwhat
- wwhere
- public void removeAll(ExecutionContext ctx, RecordHolder wwhere)
ctx
- wwhere
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.