org.opennms.gwt.web.ui.asset.client.presenter
Interface AssetPagePresenter.Display

All Known Implementing Classes:
AssetNodePageImpl
Enclosing class:
AssetPagePresenter

public static interface AssetPagePresenter.Display

Interface that defines the asset page to show edit and create new assets. The presenter AssetPagePresenter will work with every ui that is implementing this Display interface.


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.
 

Method Detail

asWidget

com.google.gwt.user.client.ui.Widget asWidget()
Recommend by GWT MVP design. Get the ui widgets up.

Returns:
Widget

cleanUp

void cleanUp()
Cleans all ui changes, notes....


getData

AssetCommand getData()
Fetches all data from the display as an AssetCommand.

Returns:
AssetCommand

getResetButton

com.google.gwt.event.dom.client.HasClickHandlers getResetButton()
get the reset button to add manage the related actions

Returns:
HasClickHandlers

getSaveButton

com.google.gwt.event.dom.client.HasClickHandlers getSaveButton()
get the save button to add manage the related actions

Returns:
HasClickHandlers

isUiValid

boolean isUiValid()
Checks if the display ui is in a valid status. So all inputs are valid an ready for save or update.

Returns:
boolean ui is valid ture / false

setData

void setData(AssetCommand asset)
Puts an AssetCommand to the display. To show all necessary content into the ui. AssetCommand contains asset-data and additional.

Parameters:
{@link - AssetCommand}

setDataSugg

void setDataSugg(AssetSuggCommand assetSugg)
Puts an AssetSuggCommand to the display. That contains all suggestions for all FieldSetSuggestBoxes at Display.


setEnable

void setEnable(Boolean enabled)
Set the display ui in write enable or disable mode. So changing data is possible or not.

Parameters:
enabled - for edit-mode.

setError

void setError(String description,
              Throwable throwable)
Puts an error with description and throwable to the display ui.

Parameters:
description - of the error
throwable - of the error

setInfo

void setInfo(String info)
Sets status info to the display ui.

Parameters:
String - info what will be shown at the display ui.


Copyright © 2011. All Rights Reserved.