Class Row

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 Row extends Control implements Hideable
This class implements Control and implements Hideable.
This component defines a row in which to insert different types of graphic components.
Using this component it's possible to manage and position the graphic elements inside it with the desired alignment (vertical and / or horizontal).
See Also:
GCApi:
component
  • Field Details

    • _visible

      protected SetPredicate _visible
    • _fullsize

      protected boolean _fullsize
    • _align

      protected char _align
    • _valign

      protected char _valign
    • _event

      protected String _event
    • _param

      protected String _param
    • _msg

      protected String _msg
  • Constructor Details

    • Row

      public Row()
  • Method Details

    • 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
    • setEVENT

      public void setEVENT(String s)
      Sets one or more events associated to the input field.
      By setting an event, a button will be created inside the field, clicking on which the event will be triggered. Each button will have a default icon.
      If the input field is in readonly state, also every event button of the field is readonly (not clickable).
      Parameters:
      s - A ListAttribute of strings (separated by the character | ) each of which represents the name of an event associated to the field
    • setMSG

      public void setMSG(String s)
      Sets the message that appears when the user tries to submit a value that is not valid. It is used in classes that extend Input
      Parameters:
      s - The string that contains the message
    • setPARAM

      public void setPARAM(String s)
      Sets one (or more) parameter for the events associated to the row (see setEVENT()).
      For the association event - parameter, it counts the position in which the attributes appear. If the parameters are fewer than the events, the last parameter of the list is associated with all the remaining events.
      Parameters:
      s - A ListAttribute of strings (separated by the character | ) each of which represents the param attribute of an event associated to the field
    • setFULLSIZE

      public void setFULLSIZE(String s)
    • setALIGN

      public void setALIGN(String s)
      Sets the horizontal align of the row's components.
      Parameters:
      s - The align to set.
    • setVALIGN

      public void setVALIGN(String s)
      Sets the vertical align of the row's components.
      Parameters:
      s - The align to set.
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Description copied from class: Component
      Abstract method that must be extended and returns the html code of the Component
      Specified by:
      getHtml in class Component
      Parameters:
      es - The EntitySet to which the element belongs
      Returns:
      The html of the Component
    • getEventButton

      public org.apache.ecs.Element getEventButton()
      Method that creates a button that launches the event associeted to the row. If the row is read-only, the event is not added to the button. Otherwise the event that button will launch will be the one associeted via the method setEVENT() with parameters and message set via the methods setPARAM() and setMSG().
      Returns:
      Return the Button element with the event associeted.
    • getBasicHtml

      public org.apache.ecs.Element getBasicHtml(EntitySet es)
      Gets the basic structucre of the component, which is a Table, used to display its internal Control objects.
      Parameters:
      es - The EntitySet to which elements belong.
      Returns:
      The basic html structucre of the component.
    • setMsg

      public void setMsg(String s)