Package org.apache.tapestry.vlib.services

Examples of org.apache.tapestry.vlib.services.RemoteCallback


     * Hooked up to the yes component, this actually deletes the book.
     */

    public void deleteBook(final Integer bookId)
    {
        RemoteCallback<Book> callback = new RemoteCallback()
        {
            public Book doRemote() throws RemoteException
            {
                try
                {
View Full Code Here


    {
        Visit visit = getVisitState();
        final Integer userPK = visit.getUserId();
        final SortOrdering ordering = new SortOrdering(getSortColumn(), isDescending());

        RemoteCallback<Integer> callback = new RemoteCallback()
        {
            public Integer doRemote() throws RemoteException
            {
                IBookQuery query = getBorrowedQuery();
View Full Code Here

        Integer userId = visit.getUserId();

        attributes.put("ownerId", userId);
        attributes.put("holderId", userId);

        RemoteCallback<Boolean> callback = new RemoteCallback()
        {
            public Boolean doRemote() throws RemoteException
            {
                IOperations operations = getOperations();
View Full Code Here

        final int high = Math.min(currentPage * _pageSize, resultCount) - 1;

        if (low > high)
            return;

        RemoteCallback<Book[]> callback = new RemoteCallback()
        {
            public Book[] doRemote() throws RemoteException
            {
                try
                {
View Full Code Here

    public void beginEdit(final Integer bookId)
    {
        setBookId(bookId);

        RemoteCallback<Map> callback = new RemoteCallback()
        {
            public Map doRemote() throws RemoteException
            {
                try
                {
View Full Code Here

        if (isInError())
            return null;

        final Integer bookId = getBookId();

        RemoteCallback callback = new RemoteCallback()
        {
            public Object doRemote() throws RemoteException
            {

                try
View Full Code Here

            return;
        }

        final Integer[] bookIds = (Integer[]) selectedBooks.toArray(new Integer[count]);

        RemoteCallback callback = new RemoteCallback()
        {
            public Object doRemote() throws RemoteException
            {
                try
                {
View Full Code Here

    private IPropertySelectionModel buildBooksModel()
    {
        Visit visit = getVisitState();
        final Integer userPK = visit.getUserId();

        RemoteCallback<Book[]> callback = new RemoteCallback()
        {
            public Book[] doRemote() throws RemoteException
            {
                IBookQuery query = getBookQuerySource().newQuery();
View Full Code Here

    private void runQuery()
    {
        final Integer userId = getVisitState().getUserId();
        final SortOrdering ordering = new SortOrdering(getSortColumn(), isDescending());

        RemoteCallback<Integer> callback = new RemoteCallback()
        {
            public Integer doRemote() throws RemoteException
            {
                IBookQuery query = getOwnedQuery();
View Full Code Here

    public IPage borrow(final IRequestCycle cycle, final Integer bookId)
    {
        final Visit visit = getVisit();

        RemoteCallback<Book> callback = new RemoteCallback()
        {
            public Book doRemote() throws RemoteException
            {
                try
                {
View Full Code Here

TOP

Related Classes of org.apache.tapestry.vlib.services.RemoteCallback

Copyright © 2018 www.massapicom. 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.