Class MapDiv

java.lang.Object
com.jbstrap.core.messagebus.MessageBus
com.jbstrap.ui.Component<com.jbstrap.ui.components.Div>
com.jbstrap.ui.components.Div
com.jbstrap.jbmap.layers.layer.MapDiv

public class MapDiv extends com.jbstrap.ui.components.Div

The MapDiv component, used by DivPoint and PopupPoint

The component doesn't have a visual representation on the ui, it's used to group other individual components together. The component appears in the HTML DOM as a div tag. Events can't be assigned to this component directly, but the components grouped under it can have events handlers.

Since:
4.0
  • Field Summary

    Fields inherited from class com.jbstrap.ui.Component

    animation, attributes, backgroundColor, borderColor, color, defaultHotKeyHandler, handlers, hotKeys, styleClasses, textAlign, toolTip, toolTipPosition
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addComponent(com.jbstrap.ui.Component<?> component, boolean draw)
     
    List<com.jbstrap.ui.Component<?>>
     
    protected List<com.jbstrap.ui.Component<?>>
    Get the div layer's components
    protected void
    registerEvents(com.jbstrap.ui.Component<?> component)
    Run registering events of div layer's components
    protected void
    runInitScript(com.jbstrap.ui.Component<?> component)
    Run init scripts of div layer's components
    protected void
    setOpened(boolean isOpen)
    Set the div layer is open or not on the screen
    boolean
     

    Methods inherited from class com.jbstrap.ui.components.Div

    b, h

    Methods inherited from class com.jbstrap.ui.Component

    _hide, _setAttribute, addAllowedRole, addComponent, addComponents, addDeniedRole, addHandler, addStyle, addStyleClass, addStyleClasses, afterDraw, b, clearfix, closeTag, combinateAccess, containsStyle, containsStyleClass, draw, drawSubComponents, error, f, flattendComponentTree, g, getAccess, getAccessMode, getAllowedRoles, getAttribute, getAttributes, getBackgroundColor, getBorderColor, getClient, getComponentById, getComponents, getComponentsByClass, getData, getDeniedRoles, getHandlers, getId, getLanguageCode, getName, getParent, getParent, getRegisteredEvents, getStyle, getStyleClasses, getTextAlign, getTextColor, getToolTip, getToolTipPosition, getTypeName, getUI, init, insertComponentAfter, insertComponentBefore, isAccess, isDrawn, isEnabled, isEventBubbling, isVisible, onHide, onHotKeyEventHandler, onShow, openTag, redraw, removeAllComponents, removeAllowedRole, removeAllStyleClasses, removeAttribute, removeComponent, removeComponent, removeComponents, removeDeniedRole, removeHandler, removeStyle, removeStyle, removeStyleClass, removeStyleClasses, replaceComponent, replaceStyleClass, runAfterDraw, runJavaScript, runJavaScript, runJavaScript, runOnHide, runOnShow, say, setAttribute, setBackgroundColor, setBorder, setBorderColor, setData, setDisplayType, setEnabled, setEventBubbling, setFlex, setFloating, setHeight100, setHeight25, setHeight50, setHeight75, setHeightAuto, setLanguage, setMargin, setName, setOverflow, setPadding, setParent, setScrollable, setSelectionType, setShadow, setStyle, setTextAlign, setTextColor, setToolTip, setToolTipPosition, setVisible, setWidth100, setWidth25, setWidth50, setWidth75, setWidthAuto, showNotification, showNotification, showProcessIndicator, toggleStyleClass

    Methods inherited from class com.jbstrap.core.messagebus.MessageBus

    b, c, closeMessageBus, d, e, messageBusOpened, openMessageBus, sendMessageToMessageBus, subscribeMessageBus, unsubscribeMessageBus

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MapDiv

      public MapDiv()
  • Method Details

    • writeHTML

      public boolean writeHTML(StringWriter writer)
      Overrides:
      writeHTML in class com.jbstrap.ui.components.Div
    • addComponent

      public MapDiv addComponent(com.jbstrap.ui.Component<?> component, boolean draw)
      Overrides:
      addComponent in class com.jbstrap.ui.Component<com.jbstrap.ui.components.Div>
    • getMapDivComponents

      protected List<com.jbstrap.ui.Component<?>> getMapDivComponents()
      Get the div layer's components
      Returns:
      component list
    • getComponents

      public List<com.jbstrap.ui.Component<?>> getComponents()
      Overrides:
      getComponents in class com.jbstrap.ui.Component<com.jbstrap.ui.components.Div>
    • setOpened

      protected void setOpened(boolean isOpen)
      Set the div layer is open or not on the screen
      Parameters:
      isOpen - true if opened and false if closed
    • runInitScript

      protected void runInitScript(com.jbstrap.ui.Component<?> component)
      Run init scripts of div layer's components
      Parameters:
      component - The actual component
    • registerEvents

      protected void registerEvents(com.jbstrap.ui.Component<?> component)
      Run registering events of div layer's components
      Parameters:
      component - The actual component