Package DisplayProject

Examples of DisplayProject.DisplayNode$qq_Resolver


    /**
     * display<p>
     * <p>
     */
    public void display() {
        DisplayNode b = new DisplayNode();
        b.setDVSmallIcon(ImageValue.get(this.getqq_blue()));
        b.setDVLargeIcon(ImageValue.get(this.getqq_blue()));
        b.setDVNodeText(new TextData("Blue"));
        DisplayNode r = new DisplayNode();
        r.setDVSmallIcon(ImageValue.get(this.getqq_red()));
        r.setDVLargeIcon(ImageValue.get(this.getqq_red()));
        r.setDVNodeText(new TextData("Red"));
        Array_Of_DisplayNode<DisplayNode> a = new Array_Of_DisplayNode<DisplayNode>();
        a.add(b);
        a.add(r);
        this.getqq_list().setViewNodes(a);
        UserWindow.open(this);
        // ----------
        // Event Loop
        // ----------
        EventManager.startEventLoop();
        try {
            EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
            EventRegistration ListView_AfterCurrentNodeChange_getqq_list = ClientEventManager.register( this.getqq_list(), "AfterCurrentNodeChange" );
            EventRegistration MenuList_AfterValueChange_getqq_Image = ClientEventManager.register( this.getqq_Image(), "AfterValueChange" );
            EventRegistration ListView_DoubleClick_getqq_list = ClientEventManager.register( this.getqq_list(), "DoubleClick" );

            while (true) {

                UIutils.processGUIActions();
                EventHandle qq_currentEvent = EventManager.waitForEvent();
                if (qq_currentEvent == null)
                    break;

                // -------------
                // task.Shutdown
                // -------------
                if (qq_currentEvent.isEvent(TaskHandle_Shutdown_langThreadcurrentThread)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        break;
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -----------------------------
                // <list>.aftercurrentNodeChange
                // -----------------------------
                else if (qq_currentEvent.isEvent(ListView_AfterCurrentNodeChange_getqq_list)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        Logger.getLogger("task.part.logmgr").info(TreeFieldCurrentNode.get(this.getqq_list()).getDVNodeText());
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ------------------------
                // <Image>.AfterValueChange
                // ------------------------
                else if (qq_currentEvent.isEvent(MenuList_AfterValueChange_getqq_Image)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        this.getqq_list().setListStyle(this.getImage());
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ------------------
                // <list>.doubleclick
                // ------------------
                else if (qq_currentEvent.isEvent(ListView_DoubleClick_getqq_list)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        DisplayNode dnode = (DisplayNode)((ParameterHolder)qq_currentEvent.getParameter("node")).getObject();
                        Logger.getLogger("task.part.logmgr").info(dnode.getDVNodeText());
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
View Full Code Here


     * <p>
     * @param node Type: DisplayNode
     * @return boolean
     */
    public boolean isChildOf(DisplayNode node) {
        DisplayNode ancestor = (DisplayNode)this.getParent();

        while (ancestor != null) {
            if (ancestor == node) {
                return true;
            }
            ancestor = (DisplayNode)ancestor.getParent();
        }

        return false;
    }
View Full Code Here

        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.initialize();
        this.setADropList(2);
        this.setAFillInField(new TextData("Three"));
        this.setAListView(new DisplayNode(true, true, DisplayNode.qq_Resolver.cISFOLDER_ISOPENED));
        this.setAOutlineField(new DisplayNode(true, true, DisplayNode.qq_Resolver.cISFOLDER_ISOPENED));
        this.setAPictureField(ImageValue.get(this.getqq_aPictureGraphic()));
        this.setARadioList(4);
        this.setAScrollList(1);
        this.setASctollBar(50);
        this.setATextEditField(new TextData("Text Edit Field"));
        this.setATextField(new TextData("Text Field"));
        this.setAToggleField(true);
        this.setATree(new DisplayNode(new TextData("Tree Node"), true, DisplayNode.qq_Resolver.cDVNODETEXT_ISFOLDER));
        this.setADataField(new TextData("Bill"));
        this.setAPassword(new TextData("AAAAAAAA"));

    }
View Full Code Here

    public int getASctollBar() {
        return this.aSctollBar;
    }

    public void setAOutlineField(DisplayNode aOutlineField) {
        DisplayNode oldValue = this.aOutlineField;
        this.aOutlineField = aOutlineField;
        RootNode.set(this.getqq_aOutlineField(), aOutlineField);
        this.qq_Listeners.firePropertyChange("AOutlineField", oldValue, this.aOutlineField);
    }
View Full Code Here

    public DisplayNode getAOutlineField() {
        return this.aOutlineField;
    }

    public void setATree(DisplayNode aTree) {
        DisplayNode oldValue = this.aTree;
        this.aTree = aTree;
        RootNode.set(this.getqq_aTree(), aTree);
        this.qq_Listeners.firePropertyChange("ATree", oldValue, this.aTree);
    }
View Full Code Here

    public DisplayNode getATree() {
        return this.aTree;
    }

    public void setAListView(DisplayNode aListView) {
        DisplayNode oldValue = this.getAListView();
        this.getqq_aListView().setRootNode(aListView);
        this.qq_Listeners.firePropertyChange("AListView", oldValue, aListView);
    }
View Full Code Here

        }
    }

    @SuppressWarnings("unchecked")
  private void checkExpand(TreePath parent){
        DisplayNode node = (DisplayNode)parent.getLastPathComponent();

        if (node.getChildCount() > 0) {

            for (Enumeration<DisplayNode> e = node.children(); e.hasMoreElements();){
                TreePath path = parent.pathByAddingChild(e.nextElement());
                checkExpand(path);
            }
        }

        if (node.getIsOpened()){
            expandPath(parent);
        } else {
          collapsePath(parent);
        }
    }
View Full Code Here

    @SuppressWarnings("unchecked")
  public static void expandOpenNodes(JTree tree, DisplayNode root) {    
        for (Enumeration e = root.breadthFirstEnumeration(); e.hasMoreElements();) {
            Object node = e.nextElement();
            if (node instanceof DisplayNode) {
                DisplayNode dNode = (DisplayNode)node;
                if (dNode.isOpened()) {
                    expandNode(tree, dNode);
                }
            }
        }
    }
View Full Code Here

      // override this method to get the same behaviour that forte had for its trees

        Object value = path.getLastPathComponent();
        if (value instanceof DisplayNode) {
            DisplayNode dn = (DisplayNode)value;

            if (dn.isFolder()) {
                int middleXOfKnob = bounds.x - (getRightChildIndent() - 1);
                int middleYOfKnob = bounds.y + (bounds.height / 2);

                Icon icon = null;
                if (dn.isOpened() && dn.getChildCount() > 0) {
                    icon = getExpandedIcon();
                }
                else {
                    icon = getCollapsedIcon();
                }
View Full Code Here

            return false;
        }

        Object value = path.getLastPathComponent();
        if (value instanceof DisplayNode) {
            DisplayNode dn = (DisplayNode)value;
            if (dn.isFolder()) {
                int                     boxWidth;
                Insets                  i = tree.getInsets();

                if(getExpandedIcon() != null)
                    boxWidth = getExpandedIcon().getIconWidth();
View Full Code Here

TOP

Related Classes of DisplayProject.DisplayNode$qq_Resolver

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.