Package com.arjuna.ats.arjuna.coordinator

Examples of com.arjuna.ats.arjuna.coordinator.AbstractRecord


     */
    public void listExpanded(ListNode node)
    {
        super.listExpanded(node);

        AbstractRecord current = getList().peekFront();
        int count = 1;

        while ( current != null )
        {
            ListEntryNode entryNode;
            ObjectStoreViewEntry icon;
           
            node.createEntry(entryNode = new ListEntryNode("["+count+"] "+current.type(), current, current.type()));
            entryNode.setIconPanelEntry(icon = new ObjectStoreViewEntry(wrapper.type(), (String)entryNode.getUserObject(), entryNode));
            icon.addSelectionListener(this);
            current = getList().peekNext(current);
            count++;
        }
View Full Code Here


     */
    public void iconSelected(IconPanelEntry icon, boolean selected)
    {
        /** Get node and the associated AbstractRecord **/
        ListEntryNode node = (ListEntryNode)(((ObjectStoreViewEntry)icon).getNode());
        AbstractRecord record = (AbstractRecord)node.getAssociatedObject();
        StatePanel panel = BrowserFrame.getStatePanel();

        panel.clear();
        panel.setType(record.type());

        updatePanelData(panel, record);

        invokeStateViewer(record, wrapper, icon);

View Full Code Here

/*      */
/*  891 */         this._duplicateResources.put(xaRes, new TxInfo(xid));
/*      */
/*  893 */         return true;
/*      */       }
/*      */       AbstractRecord record;
/*      */       Object record;
/*  902 */       if (((xaRes instanceof LastResourceCommitOptimisation)) || ((LAST_RESOURCE_OPTIMISATION_INTERFACE != null) && (LAST_RESOURCE_OPTIMISATION_INTERFACE.isInstance(xaRes))))
/*      */       {
/*  906 */         if (this.lastResourceCount == 1)
/*      */         {
View Full Code Here

    public void listExpanded(ListNode node)
    {
        super.listExpanded(node);

        AtomicActionWrapper aaw = (AtomicActionWrapper)this.getAssObject();
        AbstractRecord current = aaw.getPreparedList().peekFront();
        int count = 1;
        while ( current != null )
        {
            ListEntryNode entryNode;
            ObjectStoreViewEntry icon;
            node.createEntry(entryNode = new ListEntryNode("["+count+"] "+current.type(), current, current.type()));
            entryNode.setIconPanelEntry(icon = new ObjectStoreViewEntry(aaw.type(), (String)entryNode.getUserObject(), entryNode));
            icon.addSelectionListener(this);
            current = aaw.getPreparedList().peekNext(current);
            count++;
        }
View Full Code Here

     */
    public void iconSelected(IconPanelEntry icon, boolean selected)
    {
        /** Get node and the associated AbstractRecord **/
        ListEntryNode node = (ListEntryNode)(((ObjectStoreViewEntry)icon).getNode());
        AbstractRecord record = (AbstractRecord)node.getAssociatedObject();
        StatePanel panel = BrowserFrame.getStatePanel();
        panel.clear();
        panel.setType(record.type());

        invokeStateViewer(record, (AtomicActionWrapper)this.getAssObject(), icon);

        panel.repaint();
    }
View Full Code Here

    public void listExpanded(ListNode node)
    {
        super.listExpanded(node);

        AtomicActionWrapper aaw = (AtomicActionWrapper)this.getAssObject();
        AbstractRecord current = aaw.getReadOnlyList().peekFront();
        int count = 1;
        while ( current != null )
        {
            ListEntryNode entryNode;
            ObjectStoreViewEntry icon;
            node.createEntry(entryNode = new ListEntryNode("["+count+"] "+current.type(), current, current.type()));
            entryNode.setIconPanelEntry(icon = new ObjectStoreViewEntry(aaw.type(), (String)entryNode.getUserObject(), entryNode));
            icon.addSelectionListener(this);
            current = aaw.getReadOnlyList().peekNext(current);
            count++;
        }
View Full Code Here

     */
    public void iconSelected(IconPanelEntry icon, boolean selected)
    {
        /** Get node and the associated AbstractRecord **/
        ListEntryNode node = (ListEntryNode)(((ObjectStoreViewEntry)icon).getNode());
        AbstractRecord record = (AbstractRecord)node.getAssociatedObject();
        StatePanel panel = BrowserFrame.getStatePanel();
        panel.clear();
        panel.setType(record.type());

        invokeStateViewer(record, (AtomicActionWrapper)this.getAssObject(), icon);

        panel.repaint();
    }
View Full Code Here

    public void listExpanded(ListNode node)
    {
        super.listExpanded(node);

        AtomicActionWrapper aaw = (AtomicActionWrapper)this.getAssObject();
        AbstractRecord current = aaw.getFailedList().peekFront();
        int count = 1;
        while ( current != null )
        {
            ListEntryNode entryNode;
            ObjectStoreViewEntry icon;
            node.createEntry(entryNode = new ListEntryNode("["+count+"] "+current.type(), current, current.type()));
            entryNode.setIconPanelEntry(icon = new ObjectStoreViewEntry(aaw.type(), (String)entryNode.getUserObject(), entryNode));
            icon.addSelectionListener(this);
            current = aaw.getFailedList().peekNext(current);
            count++;
        }
View Full Code Here

     */
    public void iconSelected(IconPanelEntry icon, boolean selected)
    {
        /** Get node and the associated AbstractRecord **/
        ListEntryNode node = (ListEntryNode)(((ObjectStoreViewEntry)icon).getNode());
        AbstractRecord record = (AbstractRecord)node.getAssociatedObject();
        StatePanel panel = BrowserFrame.getStatePanel();
        panel.clear();
        panel.setType(record.type());
        invokeStateViewer(record, (AtomicActionWrapper)this.getAssObject(), icon);
        panel.repaint();
    }
View Full Code Here

    public void listExpanded(ListNode node)
    {
        super.listExpanded(node);

        AtomicActionWrapper aaw = (AtomicActionWrapper)this.getAssObject();
        AbstractRecord current = aaw.getPendingList().peekFront();
        int count = 1;
        while ( current != null )
        {
            ListEntryNode entryNode;
            ObjectStoreViewEntry icon;
            node.createEntry(entryNode = new ListEntryNode("["+count+"] "+current.type(), current, current.type()));
            entryNode.setIconPanelEntry(icon = new ObjectStoreViewEntry(aaw.type(), (String)entryNode.getUserObject(), entryNode));
            icon.addSelectionListener(this);
            current = aaw.getPendingList().peekNext(current);
            count++;
        }
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.coordinator.AbstractRecord

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.