All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Badgeable, Hideable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

@Component public class ViewportPart extends Container implements Hideable
The ViewportPart class represents a subsection of a Viewport component in the Geocall application. It provides functionality for displaying content, managing visibility, and supporting various layout options.
Since:
19.0
See Also:
GCApi:
component
  • Field Details

    • _visible

      protected SetPredicate _visible
    • _buttons

      protected List<TableButton> _buttons
    • _tableMessages

      protected List<TableMessage> _tableMessages
    • _tableOrders

      protected List<TableOrder> _tableOrders
    • _asTableView

      protected boolean _asTableView
    • _partBackground

      protected String _partBackground
    • _fullHeight

      protected boolean _fullHeight
    • _overflowAuto

      protected boolean _overflowAuto
    • _overflowOnlyX

      protected boolean _overflowOnlyX
    • _overflowOnlyY

      protected boolean _overflowOnlyY
    • _tableView

      protected String _tableView
  • Constructor Details

    • ViewportPart

      public ViewportPart()
  • Method Details

    • setTABLEVIEW

      public void setTABLEVIEW(String tv)
    • setPARTBACKGROUND

      public void setPARTBACKGROUND(String background)
    • setFULLHEIGHT

      public void setFULLHEIGHT(String s)
      Description copied from class: Component
      Sets the vertical size of the component to fullsize. So, when it is sets to true, the height of the component will occupy all the space possible
      Overrides:
      setFULLHEIGHT in class Component
      Parameters:
      s - String containing the boolean value to enable fullsize mode or not.
    • setASTABLEVIEW

      public void setASTABLEVIEW(String s)
    • setOVERFLOWAUTO

      public void setOVERFLOWAUTO(String s)
    • onOpen

      public void onOpen(Object o)
      Description copied from class: Container
      Method called when is executed the WindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object) of the Window that contains the Container. It calls the onOpen(o) method of all the Container's childrens.
      If a page is opened through the process of a route, it is possible that the route was called with params to pass to the page.
      The route params could be passed specifying them like query string's param on the url, using commas or the '=' character, to separate the keys and the values. Valid syntaxs are: "&params=KEY1,VAL1,KEY2,VAL2" or "&params=KEY1=VAL1,KEY2=VAL2"
      In that case it is possible to retrieve those params via the WindowManager.getRouteParams() method that returns an HashGetter with the params passed as parameters.
      For example it's possible to retrieve and use the params in this way: HashGetter hg = getWM().getRouteParams();
      String val1 = hg.getString("key1",null);
      String val2 = hg.getString("key2",null);
      Overrides:
      onOpen in class Container
      Parameters:
      o - Object received from the caller
    • buildDisplayScript

      public void buildDisplayScript(StringBuilder sb)
      Description copied from class: Component
      Every component can add a script to the StringBuilder, script executed when the component is displayed.
      Overrides:
      buildDisplayScript in class Component
      Parameters:
      sb - The StringBuilder on which we want to add the script
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Description copied from class: Container
      Returns the html code of the Container
      Overrides:
      getHtml in class Container
      Parameters:
      es - The EntitySet to which the element belong
      Returns:
      The html code of the Container
    • setVISIBLE

      public void setVISIBLE(String s)
      Description copied from interface: Hideable
      Sets the visibility of the component
      Specified by:
      setVISIBLE in interface Hideable
      Parameters:
      s - String used to defines the visibility of the component
    • isVisible

      public boolean isVisible()
      Description copied from interface: Hideable
      Checks the visibility of the component
      Specified by:
      isVisible in interface Hideable
      Returns:
      true if the component is visible, false otherwise
    • getHtmlId

      public String getHtmlId()
    • getResizeListener

      public ViewportPart.ViewportPartResizeListener getResizeListener()
    • content

      protected org.apache.ecs.Element content(EntitySet es)
    • buildCaption

      protected org.apache.ecs.html.Div buildCaption(EntitySet es)