Package com.im.ijc.core.api.views
Interface WidgetContainer
-
public interface WidgetContainer
Description of a widget container that provides enough data for printing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
enableNUpPrinting()
Returns whether N-UP printing tab should be enabled or not.java.lang.Iterable<? extends WidgetContainer>
getContainers(boolean onlyVisible)
Provides all sub-containers.VisualWidgetHandle
getContainerWidget()
Associated widget if this is a nested container ornull
.java.awt.Dimension
getDimension()
Information about view width and length to enable proper scaling.java.awt.Insets
getInsets()
Information about insets used in this container.java.lang.String
getName()
Name of a container.com.im.df.api.dml.DFResultSet
getResultSet()
Printed data.FormViewSingleWidgetPrintLayout
getSingleWidgetPrintLayout()
Retrieves properties of print layout when widget is the only widget in the form.java.lang.Iterable<? extends VisualWidgetHandle>
getWidgets(boolean onlyVisible)
Provides all widgets in this container.boolean
isSingleWidgetPrintForm()
Information about print form layout.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Name of a container.
-
getWidgets
java.lang.Iterable<? extends VisualWidgetHandle> getWidgets(boolean onlyVisible)
Provides all widgets in this container. It does not descend recursively. Only widgets managed by this container's scene are returned.- Parameters:
onlyVisible
- only currently visible widgets will be returned (it is up to implementation to decide what to return if the container is not shown)
-
getContainers
java.lang.Iterable<? extends WidgetContainer> getContainers(boolean onlyVisible)
Provides all sub-containers.- Parameters:
onlyVisible
- only currently visible widgets will be returned (it is up to implementation to decide what to return if the container is not shown)
-
getContainerWidget
VisualWidgetHandle getContainerWidget()
Associated widget if this is a nested container ornull
.
-
getDimension
java.awt.Dimension getDimension()
Information about view width and length to enable proper scaling.
-
getInsets
java.awt.Insets getInsets()
Information about insets used in this container. Useful for computation of widget location if it is placed into a nested container.- Returns:
- widget padding information.
-
getResultSet
com.im.df.api.dml.DFResultSet getResultSet()
Printed data.
-
isSingleWidgetPrintForm
boolean isSingleWidgetPrintForm()
Information about print form layout.- Returns:
- true or false
-
getSingleWidgetPrintLayout
FormViewSingleWidgetPrintLayout getSingleWidgetPrintLayout()
Retrieves properties of print layout when widget is the only widget in the form.- Returns:
- FormViewSingleWidgetPrintLayout bean
-
enableNUpPrinting
boolean enableNUpPrinting()
Returns whether N-UP printing tab should be enabled or not.- Returns:
true
if enable, otherwisefalse
-
-