Java Code Examples for com.google.gwt.user.client.ui.AcceptsOneWidget#setWidget()

The following examples show how to use com.google.gwt.user.client.ui.AcceptsOneWidget#setWidget() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TransactionActivity.java    From bitcoin-transaction-explorer with MIT License 6 votes vote down vote up
@Override
protected void doDeferredStart(final AcceptsOneWidget panel, final TransactionInformation transactionInformation) {
  panel.setWidget(view);
  
  final Transaction transactionFromHex = ParseUtil.getTransactionFromHex(transactionInformation.getRawHex());

  view.setTransaction(transactionFromHex, transactionHasError);

  // If an error occurred while parsing, don't bother getting the tx info
  if (transactionHasError) {
    return;
  }

  if (transactionInformation.getState() != null) {
    view.setTransactionInformation(transactionInformation);
  } else {
    service.getTransactionInformation(Str.toString(Hex.encode(transactionFromHex.getTransactionId())), new AppAsyncCallback<TransactionInformation>() {
      @Override
      public void onSuccess(final TransactionInformation result) {
        view.setTransactionInformation(result);
      }
    });
  }
}
 
Example 2
Source File: InterceptorsActivity.java    From requestor with Apache License 2.0 5 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    view.setHandler(this);
    Page.setTitle("Interceptors");
    Page.setDescription("Transform incoming and outgoing payloads.");
    panel.setWidget(view);
    scrollToSection();
}
 
Example 3
Source File: AuthActivity.java    From requestor with Apache License 2.0 5 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    view.setHandler(this);
    Page.setTitle("Authentication & Authorization");
    Page.setDescription("See how to authenticate/authorize requests in practice.");
    panel.setWidget(view);
    scrollToSection();
}
 
Example 4
Source File: FormActivity.java    From requestor with Apache License 2.0 5 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    view.setHandler(this);
    Page.setTitle("Form Data");
    Page.setDescription("Submit AJAX Forms easily.");
    panel.setWidget(view);
    scrollToSection();
}
 
Example 5
Source File: GettingStartedActivity.java    From requestor with Apache License 2.0 5 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    Page.setTitle("Getting Started");
    Page.setDescription("The steps to download, install and set up Requestor.");
    panel.setWidget(gettingStarted);
    scrollToSection();
}
 
Example 6
Source File: SendingRequestsActivity.java    From requestor with Apache License 2.0 5 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    Page.setTitle("Sending Requests");
    Page.setDescription("Know the options for sending a request.");
    panel.setWidget(view);
    scrollToSection();
}
 
Example 7
Source File: SerializationActivity.java    From requestor with Apache License 2.0 5 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    view.setHandler(this);

    deserializerRegistration = requestor.register(new MyDeserializer());
    serializerRegistration = requestor.register(new MySerializer());
    serdesRegistration = requestor.register(new MyJsonSerdes());

    Page.setTitle("Serialization");
    Page.setDescription("Exchange any media type with a powerful serialization mechanism.");
    panel.setWidget(view);
    scrollToSection();
}
 
Example 8
Source File: BinaryDataActivity.java    From requestor with Apache License 2.0 5 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    view.setHandler(this);
    Page.setTitle("Binary Data");
    Page.setDescription("Easily transfer binary data from/to server.");
    panel.setWidget(view);
    scrollToSection();
}
 
Example 9
Source File: RequestingActivity.java    From requestor with Apache License 2.0 5 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    view.setHandler(this);
    Page.setTitle("Requesting");
    Page.setDescription("A quick intro on how to request with Requestor.");
    panel.setWidget(view);
    scrollToSection();
}
 
Example 10
Source File: DigitalObjectEditing.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    panel.setWidget(editor.getUI());
    Record[] digitalObjects = place.getDigitalObjects();
    if (digitalObjects != null) {
        editor.edit(place.getEditorId(), digitalObjects);
    } else {
        editor.edit(place.getEditorId(), place.getPids());
    }
}
 
Example 11
Source File: AddressActivity.java    From bitcoin-transaction-explorer with MIT License 5 votes vote down vote up
@Override
public void start(final AcceptsOneWidget panel, final EventBus eventBus) {
  address = AddressParseUtil.parseAddress(place.getPayload());

  panel.setWidget(view);

  if(address == null) {
    return;
  }

  view.setAddress(address);

  super.start(panel, eventBus);
}
 
Example 12
Source File: FiltersActivity.java    From requestor with Apache License 2.0 5 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    view.setHandler(this);
    Page.setTitle("Filters");
    Page.setDescription("Explore the power of managing your requests by applying filters.");
    panel.setWidget(view);
    scrollToSection();
}
 
Example 13
Source File: BuildingRequestsActivity.java    From requestor with Apache License 2.0 5 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    Page.setTitle("Building Requests");
    Page.setDescription("Know the options for building a request.");
    panel.setWidget(view);
    scrollToSection();
}
 
Example 14
Source File: HomeActivity.java    From requestor with Apache License 2.0 4 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    Page.setTitle("Requestor", true);
    Page.setDescription("Requesting made easy for GWT.", true);
    panel.setWidget(home);
}
 
Example 15
Source File: TransactionActivity.java    From bitcoin-transaction-explorer with MIT License 4 votes vote down vote up
@Override
protected void doDeferredError(final AcceptsOneWidget panel, final Throwable caught) {
  panel.setWidget(view);

  view.setError(place.getHex(), caught);
}
 
Example 16
Source File: StartupActivity.java    From bitcoin-transaction-explorer with MIT License 4 votes vote down vote up
@Override
public void start(final AcceptsOneWidget panel, final EventBus eventBus) {
  panel.setWidget(view);
}
 
Example 17
Source File: ContributeActivity.java    From bitcoin-transaction-explorer with MIT License 4 votes vote down vote up
@Override
public void start(final AcceptsOneWidget panel, final EventBus eventBus) {
  panel.setWidget(view);

  view.setConfig(appConfig);
}
 
Example 18
Source File: UserManaging.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    UsersView presenter = presenterFactory.getUsers();
    panel.setWidget(presenter.asWidget());
    presenter.onShow();
}
 
Example 19
Source File: DeviceManaging.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    DeviceManager presenter = presenterFactory.getDeviceManager();
    panel.setWidget(presenter.getUI());
    presenter.init();
}
 
Example 20
Source File: DigitalObjectCreating.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    DigitalObjectCreator doc = presenters.getDigitalObjectCreator();
    panel.setWidget(doc.getUI());
    doc.newObject(place.getModel(), place.getParent());
}