|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opennms.gwt.web.ui.asset.client.view.AssetNodePageImpl
public class AssetNodePageImpl
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.| 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 | |
|---|---|
AssetNodePageImpl()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| 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, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AssetNodePageImpl()
| Method Detail |
|---|
public com.google.gwt.user.client.ui.Widget asWidget()
AssetPagePresenter.Display
asWidget in interface com.google.gwt.user.client.ui.IsWidgetasWidget in interface AssetPagePresenter.DisplayasWidget in class com.google.gwt.user.client.ui.WidgetWidgetpublic void cleanUp()
AssetPagePresenter.Display
cleanUp in interface AssetPagePresenter.Displaypublic AssetCommand getData()
AssetPagePresenter.DisplayAssetCommand.
getData in interface AssetPagePresenter.DisplayAssetCommandpublic com.google.gwt.event.dom.client.HasClickHandlers getResetButton()
AssetPagePresenter.Display
getResetButton in interface AssetPagePresenter.DisplayHasClickHandlerspublic com.google.gwt.event.dom.client.HasClickHandlers getSaveButton()
AssetPagePresenter.Display
getSaveButton in interface AssetPagePresenter.DisplayHasClickHandlerspublic boolean isUiValid()
AssetPagePresenter.Display
isUiValid in interface AssetPagePresenter.Displaypublic void setData(AssetCommand asset)
AssetPagePresenter.DisplayAssetCommand to the display. To show all necessary
content into the ui. AssetCommand contains asset-data and additional.
setData in interface AssetPagePresenter.Displaypublic void setDataSugg(AssetSuggCommand assetSugg)
AssetPagePresenter.DisplayAssetSuggCommand to the display. That contains all
suggestions for all FieldSetSuggestBoxes at Display.
setDataSugg in interface AssetPagePresenter.Displaypublic void setEnable(Boolean enabled)
AssetPagePresenter.Display
setEnable in interface AssetPagePresenter.Displayenabled - for edit-mode.
public void setError(String description,
Throwable throwable)
AssetPagePresenter.Display
setError in interface AssetPagePresenter.Displaydescription - of the errorthrowable - of the errorpublic void setInfo(String info)
AssetPagePresenter.Display
setInfo in interface AssetPagePresenter.Display
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||