Class PublishFileView

  • 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

    public class PublishFileView
    extends com.google.gwt.user.client.ui.Composite
    The Class PublishFileView.
    Author:
    Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Jan 10, 2020
    • Nested Class Summary

      • 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 inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      PublishFileView​(ZenodoFile file)
      Instantiates a new publish file view.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.github.gwtbootstrap.client.ui.TextBox getField_file_name()
      Gets the field file name.
      ZenodoFile getFile()
      Gets the file.
      org.gcube.portlets.widgets.switchbutton.client.SwitchButton getSwitchButton()
      Gets the switch button.
      void hideSwitchButton​(boolean bool, String msg)
      Hide switch button.
      boolean isToPublish()
      Checks if is to publish.
      void setFieldName​(String value)
      Sets the field name.
      void setSwitchButton​(org.gcube.portlets.widgets.switchbutton.client.SwitchButton switchButton)
      Sets the switch button.
      • 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
    • Constructor Detail

      • PublishFileView

        public PublishFileView​(ZenodoFile file)
        Instantiates a new publish file view.
        Parameters:
        file - the file
    • Method Detail

      • getSwitchButton

        public org.gcube.portlets.widgets.switchbutton.client.SwitchButton getSwitchButton()
        Gets the switch button.
        Returns:
        the switch button
      • hideSwitchButton

        public void hideSwitchButton​(boolean bool,
                                     String msg)
        Hide switch button.
        Parameters:
        bool - the bool
        msg - the msg
      • getField_file_name

        public com.github.gwtbootstrap.client.ui.TextBox getField_file_name()
        Gets the field file name.
        Returns:
        the field file name
      • setSwitchButton

        public void setSwitchButton​(org.gcube.portlets.widgets.switchbutton.client.SwitchButton switchButton)
        Sets the switch button.
        Parameters:
        switchButton - the new switch button
      • setFieldName

        public void setFieldName​(String value)
        Sets the field name.
        Parameters:
        value - the new field name
      • getFile

        public ZenodoFile getFile()
        Gets the file.
        Returns:
        the file
      • isToPublish

        public boolean isToPublish()
        Checks if is to publish.
        Returns:
        true, if is to publish