Package com.arjuna.ats.tools.objectstorebrowser.panels

Examples of com.arjuna.ats.tools.objectstorebrowser.panels.StatePanel


    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, (ArjunaTransactionWrapper) getAssObject(), icon);
        panel.repaint();
    }
View Full Code Here


        addSelectionListener(this);
    }

    public void iconSelected(IconPanelEntry icon, boolean selected)
    {
        StatePanel panel = BrowserFrame.getStatePanel();
        final ListNode node = (ListNode) getNode();
        BasicActionInfo ba = (BasicActionInfo) node.getAssObject();
        RecordList list = getList(ba);

        panel.clear();
        panel.setType(getTypeName());
        panel.setInfo(list.size()+" entries");

        updatePanelData(panel, ba);

        if (list.size() != 0)
            enableDetailsButton(panel, node);

        panel.repaint();
    }
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);

        panel.repaint();
    }
View Full Code Here

    public void iconSelected(IconPanelEntry icon, boolean selected)
    {
        ListEntryNode node = (ListEntryNode)(((ObjectStoreViewEntry)icon).getNode());
        XAResourceInfo xares = (XAResourceInfo)node.getAssociatedObject();
        StatePanel panel = BrowserFrame.getStatePanel();

        panel.clear();
        panel.setType("XAResource");
        panel.setInfo(xares.getInstanceName());

        panel.setData("Creation Time", UidInfo.formatTime(xares.getCreationTime()));
        panel.setData("Age (seconds)", String.valueOf(xares.getAge()));
        panel.setData("Instance Name", xares.getInstanceName());
        panel.setData("Product Name", xares.getEisProductName());
        panel.setData("Product Version", xares.getEisProductVersion());
        panel.setData("Tx State", xares.getTxState());
        panel.setData("Xid", xares.getXid());
        panel.setData("Timeout", String.valueOf(xares.getTimeout()));

        panel.updateColumnSizes();
        panel.repaint();
    }
View Full Code Here

        addSelectionListener(this);
    }

    public void iconSelected(IconPanelEntry icon, boolean selected)
    {
        StatePanel panel = BrowserFrame.getStatePanel();
        XAResourceListNode node = (XAResourceListNode) getNode();
        ArjunaTransactionWrapper aaw = (ArjunaTransactionWrapper) node.getAssObject();
        Collection<XAResourceInfo> c = aaw.getResources();

        panel.clear();
        panel.setType(getTypeName());
        panel.setInfo(c.size()+" entries");
        panel.setTableHeader("Product Name", "Instance Name");

        for (XAResourceInfo xares : c)
            panel.setData(xares.getEisProductName(), xares.getInstanceName());
       
        if (c.size() != 0)
        {
            enableDetailsButton(panel, node);
            panel.updateColumnSizes();
        }

        panel.repaint();
    }
View Full Code Here

    public void iconSelected(IconPanelEntry icon, boolean selected)
    {
        ListEntryNode node = (ListEntryNode)(((ObjectStoreViewEntry)icon).getNode());
        SynchronizationInfo si = (SynchronizationInfo) node.getAssociatedObject();
        StatePanel panel = BrowserFrame.getStatePanel();

        panel.clear();
        panel.setType("Synchronization");
        panel.setInfo(si.getInstanceName());

        panel.setData("Creation Time", UidInfo.formatTime(si.getCreationTime()));
        panel.setData("Age (seconds)", String.valueOf(si.getAge()));

        panel.updateColumnSizes();
        panel.repaint();
    }
View Full Code Here

        super(tn, label, node);
    }

    public void iconSelected(IconPanelEntry icon, boolean selected)
    {
        StatePanel panel = BrowserFrame.getStatePanel();
        final SynchronizationListNode node = (SynchronizationListNode) getNode();
        ArjunaTransactionWrapper aaw = (ArjunaTransactionWrapper) node.getAssObject();
        Collection<SynchronizationInfo> c = aaw.getSynchronizationInfo();

        panel.clear();
        panel.setType(getTypeName());
        panel.setInfo(c.size() + " entries");       
        panel.setTableHeader("Uid", "Instance Name");

        for (SynchronizationInfo si : c)
            panel.setData(si.getUid().stringForm(), si.getInstanceName());

        if (c.size() != 0)
        {
            enableDetailsButton(panel, node);
            panel.updateColumnSizes();
        }

        panel.repaint();
    }
View Full Code Here


    public void iconSelected(IconPanelEntry icon, boolean selected)
    {

        StatePanel panel = BrowserFrame.getStatePanel();

        updatePanel(panel);
    }
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 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

TOP

Related Classes of com.arjuna.ats.tools.objectstorebrowser.panels.StatePanel

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.