Examples of DataView


Examples of com.sleepycat.bdb.DataView

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredList(DataStore store, DataBinding valueBinding,
                      boolean writeAllowed) {

        super(new DataView(store, null, DEFAULT_KEY_BINDING, valueBinding,
                           null, writeAllowed));
    }
View Full Code Here

Examples of com.sleepycat.bdb.DataView

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredList(DataStore store, EntityBinding valueEntityBinding,
                      boolean writeAllowed) {

        super(new DataView(store, null, DEFAULT_KEY_BINDING, null,
                           valueEntityBinding, writeAllowed));
    }
View Full Code Here

Examples of com.sleepycat.bdb.DataView

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredList(DataIndex index, DataBinding valueBinding,
                      boolean writeAllowed) {

        super(new DataView(null, index, DEFAULT_KEY_BINDING, valueBinding,
                           null, writeAllowed));
    }
View Full Code Here

Examples of com.sleepycat.bdb.DataView

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredList(DataIndex index, EntityBinding valueEntityBinding,
                      boolean writeAllowed) {

        super(new DataView(null, index, DEFAULT_KEY_BINDING, null,
                           valueEntityBinding, writeAllowed));
    }
View Full Code Here

Examples of com.sleepycat.bdb.DataView

     */
    public StoredSortedValueSet(DataStore store,
                                EntityBinding valueEntityBinding,
                                boolean writeAllowed) {

        super(new DataView(store, null, null, null,
                           valueEntityBinding, writeAllowed));
        checkKeyDerivation();
    }
View Full Code Here

Examples of com.sleepycat.bdb.DataView

     */
    public StoredSortedValueSet(DataIndex index,
                                DataBinding valueBinding,
                                boolean writeAllowed) {

        super(new DataView(null, index, null, valueBinding,
                           null, writeAllowed));
        checkKeyDerivation();
    }
View Full Code Here

Examples of com.sleepycat.bdb.DataView

     */
    public StoredSortedValueSet(DataIndex index,
                                EntityBinding valueEntityBinding,
                                boolean writeAllowed) {

        super(new DataView(null, index, null, null,
                           valueEntityBinding, writeAllowed));
        checkKeyDerivation();
    }
View Full Code Here

Examples of com.sleepycat.bdb.DataView

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredKeySet(DataStore store, DataBinding keyBinding,
                        boolean writeAllowed) {

        super(new DataView(store, null, keyBinding, null,
                           null, writeAllowed));
    }
View Full Code Here

Examples of com.sleepycat.bdb.DataView

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredKeySet(DataIndex index, DataBinding keyBinding,
                        boolean writeAllowed) {

        super(new DataView(null, index, keyBinding, null,
                           null, writeAllowed));
    }
View Full Code Here

Examples of org.apache.wicket.markup.repeater.data.DataView

         {
            return Identity.instance().isLoggedIn() && hotelSearch.getHotels().size() == 0;
         }
      };
      body.add(noHotelsFound.setOutputMarkupId(true));
      hotelDataView = new DataView("hotel", new SimpleDataProvider() // A DataProvider adapts between your data and Wicket's internal representation
      {
         public Iterator iterator(int from, int count)
         {
            return hotelSearch.getHotels().subList(from, from + count).iterator();
         }

         public int size()
         {
            return hotelSearch.getHotels().size();
         }

      })
      {
         /**
          * You specify the tr in the html, and populate each one here
          */
         @Override
         protected void populateItem(Item item)
         {
            final Hotel hotel = (Hotel) item.getModelObject();
            item.add(new Label("hotelName", hotel.getName()));
            item.add(new Label("hotelAddress", hotel.getAddress()));
            item.add(new Label("hotelCityStateCountry", hotel.getCity() + ", " + hotel.getState() + ", " + hotel.getCountry()));
            item.add(new Label("hotelZip", hotel.getZip()));
            //item.add(new BookmarkablePageLink("viewHotel", org.jboss.seam.example.wicket.Hotel.class).setParameter("hotelId", hotel.getId()));
            item.add(new Link("viewHotel")
            {

               @Begin
               @Override
               public void onClick()
               {
                  hotelBooking.selectHotel(hotel);
                  setResponsePage(new org.jboss.seam.example.wicket.Hotel(new PageParameters()));
               }
           
            });
         }
        
      };
     
      // Set the maximum items per page
      hotelDataView.setItemsPerPage(hotelSearchForm.getPageSize());
      hotelDataView.setOutputMarkupId(true);
      hotels = new WebMarkupContainer("hotels");
      hotels.add(hotelDataView).setOutputMarkupId(true);
     
     
      // Add a pager
      hotels.add(new AjaxPagingNavigator("hotelPager", hotelDataView)
      {
         @Override
         public boolean isVisible()
         {
            return hotelDataView.isVisible();
         }

      });
     
      body.add(hotels);
     
      /*
       * Existing hotel booking
       */
      bookedHotelDataView = new DataView("bookedHotel", new SimpleDataProvider()
      {
         public Iterator iterator(int from, int count)
         {
            return bookings.subList(from, from + count).iterator();
         }
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.