Class PublishFileView
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- org.gcube.portlets.widgets.ckan2zenodopublisher.client.ui.publishfile.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.CompositeThe Class PublishFileView.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Jan 10, 2020
-
-
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.TextBoxgetField_file_name()Gets the field file name.ZenodoFilegetFile()Gets the file.org.gcube.portlets.widgets.switchbutton.client.SwitchButtongetSwitchButton()Gets the switch button.voidhideSwitchButton(boolean bool, String msg)Hide switch button.booleanisToPublish()Checks if is to publish.voidsetFieldName(String value)Sets the field name.voidsetSwitchButton(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 boolmsg- 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
-
-