Class BasicInformationView

  • 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, FormValidator

    public class BasicInformationView
    extends com.google.gwt.user.client.ui.Composite
    implements FormValidator
    The Class CreateTaskConfigurationView.
    Author:
    Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it May 4, 2018
    • 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
      BasicInformationView​(ZenodoItem zenodoItem, boolean isUpdate, int tabIndex)
      Because this class has a default constructor, it can be used as a binder template.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.github.gwtbootstrap.client.ui.ControlGroup getCg_image_type()
      Gets the cg image type.
      com.github.gwtbootstrap.client.ui.ControlGroup getCg_publication_type()
      Gets the cg publication type.
      Date getEmbargoDate()
      Gets the embargo date.
      com.github.gwtbootstrap.client.ui.Alert getError_alert()
      Gets the error alert.
      com.github.gwtbootstrap.client.ui.TextArea getField_access_conditions()
      Gets the field access conditions.
      com.github.gwtbootstrap.client.ui.ListBox getField_access_right()
      Gets the field access right.
      com.github.gwtbootstrap.client.ui.TextArea getField_description()
      Gets the field description.
      com.github.gwtbootstrap.client.ui.TextBox getField_doi()
      Gets the field doi.
      com.github.gwtbootstrap.client.ui.ListBox getField_image_type()
      Gets the field image type.
      com.github.gwtbootstrap.client.ui.ListBox getField_license()
      Gets the field license.
      com.github.gwtbootstrap.datepicker.client.ui.DateBox getField_publication_date()
      Gets the field publication date.
      com.github.gwtbootstrap.client.ui.ListBox getField_publication_type()
      Gets the field publication type.
      com.github.gwtbootstrap.client.ui.TextBox getField_title()
      Gets the field title.
      com.github.gwtbootstrap.client.ui.ListBox getField_upload_type()
      Gets the field upload type.
      com.github.gwtbootstrap.client.ui.Fieldset getFieldset_basic_informations()
      Gets the fieldset basic informations.
      List<ZenodoContributor> getListOfContributors()
      Gets the list of contributors.
      List<CreatorsFormView> getListOfContributorsView()
      Gets the list of contributors view.
      List<ZenodoCreator> getListOfCreators()
      Gets the list of authors.
      List<CreatorsFormView> getListOfCreatorsView()
      Gets the list of creators view.
      List<String> getListOfKeywords()
      Gets the list of keywords.
      List<String> getTags()
      Gets the tags.
      boolean isEditConfiguration()
      Checks if is edits the configuration.
      boolean isValidForm()
      Checks if is valid form.
      protected void setVisibleFieldsForUpdate​(boolean isUpdate)
      Sets the visible fields for update.
      String validateFormFields()
      Validate form fields.
      • 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

      • BasicInformationView

        public BasicInformationView​(ZenodoItem zenodoItem,
                                    boolean isUpdate,
                                    int tabIndex)
        Because this class has a default constructor, it can be used as a binder template. In other words, it can be used in other *.ui.xml files as follows: Hello! Note that depending on the widget that is used, it may be necessary to implement HasHTML instead of HasText.
        Parameters:
        zenodoItem - the zenodo item
        isUpdate - the is update
        tabIndex - the tab index
    • Method Detail

      • getEmbargoDate

        public Date getEmbargoDate()
        Gets the embargo date.
        Returns:
        the embargo date
      • setVisibleFieldsForUpdate

        protected void setVisibleFieldsForUpdate​(boolean isUpdate)
        Sets the visible fields for update.
        Parameters:
        isUpdate - the new visible fields for update
      • isEditConfiguration

        public boolean isEditConfiguration()
        Checks if is edits the configuration.
        Returns:
        the isEditConfiguration
      • validateFormFields

        public String validateFormFields()
        Description copied from interface: FormValidator
        Validate form fields.
        Specified by:
        validateFormFields in interface FormValidator
        Returns:
        the error in case of field not valid. Null otherwise
      • isValidForm

        public boolean isValidForm()
        Description copied from interface: FormValidator
        Checks if is valid form.
        Specified by:
        isValidForm in interface FormValidator
        Returns:
        true, if is valid form
      • getListOfContributorsView

        public List<CreatorsFormView> getListOfContributorsView()
        Gets the list of contributors view.
        Returns:
        the list of contributors view
      • getListOfCreatorsView

        public List<CreatorsFormView> getListOfCreatorsView()
        Gets the list of creators view.
        Returns:
        the list of creators view
      • getListOfCreators

        public List<ZenodoCreator> getListOfCreators()
        Gets the list of authors.
        Returns:
        the list of authors
      • getListOfContributors

        public List<ZenodoContributor> getListOfContributors()
        Gets the list of contributors.
        Returns:
        the list of contributors
      • getField_title

        public com.github.gwtbootstrap.client.ui.TextBox getField_title()
        Gets the field title.
        Returns:
        the field title
      • getField_doi

        public com.github.gwtbootstrap.client.ui.TextBox getField_doi()
        Gets the field doi.
        Returns:
        the field doi
      • getFieldset_basic_informations

        public com.github.gwtbootstrap.client.ui.Fieldset getFieldset_basic_informations()
        Gets the fieldset basic informations.
        Returns:
        the fieldset basic informations
      • getField_description

        public com.github.gwtbootstrap.client.ui.TextArea getField_description()
        Gets the field description.
        Returns:
        the field description
      • getField_upload_type

        public com.github.gwtbootstrap.client.ui.ListBox getField_upload_type()
        Gets the field upload type.
        Returns:
        the field upload type
      • getField_access_right

        public com.github.gwtbootstrap.client.ui.ListBox getField_access_right()
        Gets the field access right.
        Returns:
        the field access right
      • getField_access_conditions

        public com.github.gwtbootstrap.client.ui.TextArea getField_access_conditions()
        Gets the field access conditions.
        Returns:
        the field access conditions
      • getField_image_type

        public com.github.gwtbootstrap.client.ui.ListBox getField_image_type()
        Gets the field image type.
        Returns:
        the field image type
      • getField_license

        public com.github.gwtbootstrap.client.ui.ListBox getField_license()
        Gets the field license.
        Returns:
        the field license
      • getField_publication_type

        public com.github.gwtbootstrap.client.ui.ListBox getField_publication_type()
        Gets the field publication type.
        Returns:
        the field publication type
      • getCg_publication_type

        public com.github.gwtbootstrap.client.ui.ControlGroup getCg_publication_type()
        Gets the cg publication type.
        Returns:
        the cg publication type
      • getCg_image_type

        public com.github.gwtbootstrap.client.ui.ControlGroup getCg_image_type()
        Gets the cg image type.
        Returns:
        the cg image type
      • getField_publication_date

        public com.github.gwtbootstrap.datepicker.client.ui.DateBox getField_publication_date()
        Gets the field publication date.
        Returns:
        the field publication date
      • getError_alert

        public com.github.gwtbootstrap.client.ui.Alert getError_alert()
        Gets the error alert.
        Returns:
        the error alert
      • getTags

        public List<String> getTags()
        Gets the tags.
        Returns:
        the tags
      • getListOfKeywords

        public List<String> getListOfKeywords()
        Gets the list of keywords.
        Returns:
        the list of keywords