Class JadiceWidget

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.RequiresResize

    public class JadiceWidget
    extends com.google.gwt.user.client.ui.Composite
    implements com.google.gwt.user.client.ui.RequiresResize
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  JadiceWidget.DocumentLink  
      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static JadiceWidget.DocumentLink[] DOCS
      Some links to some documents from digbib.org
      protected com.google.gwt.user.client.ui.DockLayoutPanel panel  
      protected HorizontalToolbar statusbar  
      protected com.google.gwt.user.client.ui.HorizontalPanel toolbarPanel  
      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      JadiceWidget()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Context getContext()  
      Document getDocument()  
      PageView getPageView()  
      Viewer getViewer()  
      void onResize()  
      void readDocument​(Source src)  
      protected void registerTools()
      Register the tools and set an activation policy
      protected void setPresentationRules()
      how should the pageview behave? For example, we set a min and max zoom factor here
      protected void shapeStatusbar()  
      • Methods inherited from class com.google.gwt.user.client.ui.Composite

        claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
    • Field Detail

      • toolbarPanel

        @UiField
        protected com.google.gwt.user.client.ui.HorizontalPanel toolbarPanel
      • panel

        @UiField
        protected com.google.gwt.user.client.ui.DockLayoutPanel panel
    • Constructor Detail

      • JadiceWidget

        public JadiceWidget()
    • Method Detail

      • getContext

        public Context getContext()
      • registerTools

        protected void registerTools()
        Register the tools and set an activation policy

        For further information about how tools work take a look into the showcase that is shipped with the jadice webtoolkit distribution. (alternatively have a look at https://webtoolkit.jadice.com/showcase/#!DefaultTools)

      • shapeStatusbar

        protected void shapeStatusbar()
      • setPresentationRules

        protected void setPresentationRules()
        how should the pageview behave? For example, we set a min and max zoom factor here
      • readDocument

        public void readDocument​(Source src)
      • onResize

        public void onResize()
        Specified by:
        onResize in interface com.google.gwt.user.client.ui.RequiresResize
      • getDocument

        public Document getDocument()
      • getPageView

        public PageView getPageView()
      • getViewer

        public Viewer getViewer()