public class AssetNodePageImpl extends com.google.gwt.user.client.ui.Composite implements AssetPagePresenter.Display
AssetNodePage.ui.xml
.
Most parts are mapping code to fill the ui FieldSets
from the command objects AssetCommand
AssetSuggCommand
and back.
Adding some validators to FieldSets
.
Mapping code may be replaced by implementing GWT Editor framework.Constructor and Description |
---|
AssetNodePageImpl() |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.user.client.ui.Widget |
asWidget()
Recommend by GWT MVP design.
|
void |
cleanUp()
Cleans all ui changes, notes....
|
AssetCommand |
getData()
Fetches all data from the display as an
AssetCommand . |
com.google.gwt.event.dom.client.HasClickHandlers |
getResetButton()
get the reset button to add manage the related actions
|
com.google.gwt.event.dom.client.HasClickHandlers |
getSaveButton()
get the save button to add manage the related actions
|
boolean |
isUiValid()
Checks if the display ui is in a valid status.
|
void |
setData(AssetCommand asset)
Puts an
AssetCommand to the display. |
void |
setDataSugg(AssetSuggCommand assetSugg)
Puts an
AssetSuggCommand to the display. |
void |
setEnable(Boolean enabled)
Set the display ui in write enable or disable mode.
|
void |
setError(String description,
Throwable throwable)
Puts an error with description and throwable to the display ui.
|
void |
setInfo(String info)
Sets status info to the display ui.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
public com.google.gwt.user.client.ui.Widget asWidget()
AssetPagePresenter.Display
asWidget
in interface com.google.gwt.user.client.ui.IsWidget
asWidget
in interface AssetPagePresenter.Display
asWidget
in class com.google.gwt.user.client.ui.Widget
Widget
public void cleanUp()
AssetPagePresenter.Display
cleanUp
in interface AssetPagePresenter.Display
public AssetCommand getData()
AssetPagePresenter.Display
AssetCommand
.getData
in interface AssetPagePresenter.Display
AssetCommand
public com.google.gwt.event.dom.client.HasClickHandlers getResetButton()
AssetPagePresenter.Display
getResetButton
in interface AssetPagePresenter.Display
HasClickHandlers
public com.google.gwt.event.dom.client.HasClickHandlers getSaveButton()
AssetPagePresenter.Display
getSaveButton
in interface AssetPagePresenter.Display
HasClickHandlers
public boolean isUiValid()
AssetPagePresenter.Display
isUiValid
in interface AssetPagePresenter.Display
public void setData(AssetCommand asset)
AssetPagePresenter.Display
AssetCommand
to the display. To show all necessary
content into the ui. AssetCommand contains asset-data and additional.setData
in interface AssetPagePresenter.Display
public void setDataSugg(AssetSuggCommand assetSugg)
AssetPagePresenter.Display
AssetSuggCommand
to the display. That contains all
suggestions for all FieldSetSuggestBox
es at Display.setDataSugg
in interface AssetPagePresenter.Display
public void setEnable(Boolean enabled)
AssetPagePresenter.Display
setEnable
in interface AssetPagePresenter.Display
enabled
- for edit-mode.public void setError(String description, Throwable throwable)
AssetPagePresenter.Display
setError
in interface AssetPagePresenter.Display
description
- of the errorthrowable
- of the errorpublic void setInfo(String info)
AssetPagePresenter.Display
setInfo
in interface AssetPagePresenter.Display
Copyright © 2016. All rights reserved.