Examples of Place


Examples of com.google.gwt.place.shared.Place

    String history6 = subject.getPrefixAndToken(place6).toString();
    assertEquals(place6.content, history6);
    assertTrue(subject.getTokenizer("") instanceof Place6.Tokenizer);
    assertTrue(subject.getPlace("noPrefix") instanceof Place6);

    Place place = new Place() {
    };
    assertNull(subject.getPrefixAndToken(place));
    assertNull(subject.getTokenizer("snot"));
  }
View Full Code Here

Examples of com.google.gwt.place.shared.Place

    public void close(Place key) {

        int widgetIndex = openedTabs.getIndex( key );

        Place nextPlace = getPlace( widgetIndex );

        tabLayoutPanel.remove( openedTabs.get( key ) );
        openedTabs.remove( key );

        if ( nextPlace != null ) {
View Full Code Here

Examples of com.google.gwt.place.shared.Place

        // Does nothing
    }

    @Test
    public void testChangePlace() throws Exception {
        Place oldPlace = mock( Place.class );
        Place newPlace = mock( Place.class );

        multiActivityManager.setTabbedPanel( tabbedPanel );

        verifyGoToNewPlace( oldPlace, "oldMockTabTitle" );
        verifyGoToNewPlace( newPlace, "newMockTabTitle" );
View Full Code Here

Examples of com.google.gwt.place.shared.Place

        verifyGoToNewPlace( newPlace, "newMockTabTitle" );
    }

    @Test
    public void testPlaceGetsShownIfItAlreadyActive() throws Exception {
        Place oldPlace = mock( Place.class );
        Place newPlace = mock( Place.class );

        multiActivityManager.setTabbedPanel( tabbedPanel );

        verifyGoToNewPlace( oldPlace, "oldMockTabTitle" );
        verifyGoToExistingPlace( newPlace );
View Full Code Here

Examples of com.google.gwt.place.shared.Place

        verify( tabbedPanel, never() ).addTab( anyString(), Matchers.<IsWidget>any(), any( Place.class ) );
    }

    @Test
    public void testCloseTabCallsOnStopAndRemovesWrappersHandlers() throws Exception {
        Place place = mock( Place.class );
        multiActivityManager.setTabbedPanel( tabbedPanel );
        ArgumentCaptor<ResettableEventBus> resettableEventBusArgumentCaptor = ArgumentCaptor.forClass( ResettableEventBus.class );

        HandlerRegistration handlerRegistration = mock( HandlerRegistration.class );
        ClosePlaceEvent.Handler handler = mock( ClosePlaceEvent.Handler.class );
View Full Code Here

Examples of com.google.gwt.place.shared.Place

        verify( handlerRegistration ).removeHandler();
    }

    @Test
    public void testClosingATabIsBlockedByTheActivity() throws Exception {
        Place place = mock( Place.class );
        multiActivityManager.setTabbedPanel( tabbedPanel );

        Activity activity = goTo( place );
        when( activity.mayStop() ).thenReturn( false );
View Full Code Here

Examples of com.motomapia.entity.Place

    ofy().transact(new VoidWork() {
      @Override
      public void vrun() {
        log.debug("Syncing " + wikiPlace);

        Place place = ofy().load().type(Place.class).id(wikiPlace.getId()).now();

        if (place == null) {
          ofy().save().entity(new Place(wikiPlace));
        } else {
          place.updateFrom(wikiPlace);
        }
      }
    });
  }
View Full Code Here

Examples of com.openbravo.pos.ticket.Place

    public Place findPlaceById(String placeId) {

        Connection con = null;
        PreparedStatement ps = null;
        ResultSet rs = null;
        Place vo = null;
        String sqlStr = "Select * from PLACES where ID = ?";

        try {
            //get connection
            con = getConnection();
View Full Code Here

Examples of com.openbravo.pos.ticket.Place

    }

    @Override
    protected Place map2VO(ResultSet rs) throws SQLException {

        Place place = new Place();
        place.setId(rs.getString("id"));
        place.setName(rs.getString("name"));
        place.setX(rs.getInt("x"));
        place.setY(rs.getInt("y"));
        place.setFloor(rs.getString("floor"));

        return place;
    }
View Full Code Here

Examples of com.openbravo.pos.ticket.Place

    public Place findPlaceById(String placeId) {

        Connection con = null;
        PreparedStatement ps = null;
        ResultSet rs = null;
        Place vo = null;
        String sqlStr = "Select * from PLACES where ID = ?";

        try {
            //get connection
            con = getConnection();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.