org.opennms.dashboard.client
Class ListBoxCallback

java.lang.Object
  extended by org.opennms.dashboard.client.ListBoxCallback
All Implemented Interfaces:
com.google.gwt.user.client.rpc.AsyncCallback
Direct Known Subclasses:
GraphDashlet.GraphView.ChildResourceLoader, GraphDashlet.GraphView.PrefabGraphLoader, GraphDashlet.GraphView.TopLevelResourceLoader

public class ListBoxCallback
extends Object
implements com.google.gwt.user.client.rpc.AsyncCallback

ListBoxCallback class.

Since:
1.8.1
Version:
$Id: $
Author:
Mathew Brozowski, DJ Gregor, Mathew Brozowski, DJ Gregor

Constructor Summary
ListBoxCallback(DashletLoader dashlet, com.google.gwt.user.client.ui.ListBox listBox)
          Constructor for ListBoxCallback.
 
Method Summary
 int getDirection()
          getDirection
 com.google.gwt.user.client.ui.ListBox getListBox()
          getListBox
 void onDataLoaded(String[][] resources)
          onDataLoaded
 void onFailure(Throwable caught)
          
 void onSuccess(Object result)
          
 void setDirection(int direction)
          setDirection
 void setEmptyListItem(String name, String value)
          setEmptyListItem
 void setNullListItem(String name, String value)
          setNullListItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListBoxCallback

public ListBoxCallback(DashletLoader dashlet,
                       com.google.gwt.user.client.ui.ListBox listBox)

Constructor for ListBoxCallback.

Parameters:
dashlet - a DashletLoader object.
listBox - a ListBox object.
Method Detail

getListBox

public com.google.gwt.user.client.ui.ListBox getListBox()

getListBox

Returns:
a ListBox object.

setDirection

public void setDirection(int direction)

setDirection

Parameters:
direction - a int.

getDirection

public int getDirection()

getDirection

Returns:
a int.

setNullListItem

public void setNullListItem(String name,
                            String value)

setNullListItem

Parameters:
name - a String object.
value - a String object.

setEmptyListItem

public void setEmptyListItem(String name,
                             String value)

setEmptyListItem

Parameters:
name - a String object.
value - a String object.

onDataLoaded

public void onDataLoaded(String[][] resources)

onDataLoaded

Parameters:
resources - an array of String objects.

onFailure

public void onFailure(Throwable caught)

Specified by:
onFailure in interface com.google.gwt.user.client.rpc.AsyncCallback

onSuccess

public void onSuccess(Object result)

Specified by:
onSuccess in interface com.google.gwt.user.client.rpc.AsyncCallback


Copyright © 2011. All Rights Reserved.