Package org.apache.cayenne.map

Examples of org.apache.cayenne.map.CallbackDescriptor


                    }

                    int rowIndex = table.getSelectedRow();

                    // move callback method inside of model
                    CallbackDescriptor callbackDescriptor = getCallbackMap()
                            .getCallbackDescriptor(
                                    ((CallbackType) callbackTypeCombo.getSelectedItem())
                                            .getType());
                    mediator.setDirty(callbackDescriptor.moveMethod(
                            callbackMethod,
                            rowIndex));
                    rebuildTable();
                    return true;
                }
View Full Code Here


            if (map == null) {
                type.setCounter(0);
            }
            else {
                CallbackDescriptor callbackDescriptor = map.getCallbackDescriptor(type
                        .getType());
                type.setCounter(callbackDescriptor.getCallbackMethods().size());
            }
        }
        callbackTypeCombo.repaint();
    }
View Full Code Here

     * rebuilds table content
     */
    protected void rebuildTable() {
        CallbackType callbackType = (CallbackType) callbackTypeCombo.getSelectedItem();
        List methods = new ArrayList();
        CallbackDescriptor descriptor = null;
        CallbackMap callbackMap = getCallbackMap();

        if (callbackMap != null && callbackType != null) {
            descriptor = callbackMap.getCallbackDescriptor(callbackType.getType());
            for (String callbackMethod : descriptor.getCallbackMethods()) {
                methods.add(callbackMethod);
            }
        }

        final CallbackDescriptorTableModel model = new CallbackDescriptorTableModel(
View Full Code Here

                    }

                    int rowIndex = table.getSelectedRow();

                    // move callback method inside of model
                    CallbackDescriptor callbackDescriptor = getCallbackMap()
                            .getCallbackDescriptor(
                                    ((CallbackType) callbackTypeCombo.getSelectedItem())
                                            .getType());
                    mediator.setDirty(callbackDescriptor.moveMethod(
                            callbackMethod,
                            rowIndex));
                    rebuildTable();
                    return true;
                }
View Full Code Here

            if (map == null) {
                type.setCounter(0);
            }
            else {
                CallbackDescriptor callbackDescriptor = map.getCallbackDescriptor(type
                        .getType());
                type.setCounter(callbackDescriptor.getCallbackMethods().size());
            }
        }
        callbackTypeCombo.repaint();
    }
View Full Code Here

     * rebuilds table content
     */
    protected void rebuildTable() {
        CallbackType callbackType = (CallbackType) callbackTypeCombo.getSelectedItem();
        List methods = new ArrayList();
        CallbackDescriptor descriptor = null;
        CallbackMap callbackMap = getCallbackMap();

        if (callbackMap != null && callbackType != null) {
            descriptor = callbackMap.getCallbackDescriptor(callbackType.getType());
            for (String callbackMethod : descriptor.getCallbackMethods()) {
                methods.add(callbackMethod);
            }
        }

        final CallbackDescriptorTableModel model = new CallbackDescriptorTableModel(
View Full Code Here

TOP

Related Classes of org.apache.cayenne.map.CallbackDescriptor

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.