Package org.openquark.gems.client.IntellicutListModelAdapter

Examples of org.openquark.gems.client.IntellicutListModelAdapter.InputOutputAdapter


        setName("MatchingGemsList");
        setBounds(0, 0, 160, 120);
        setEditable(true);
        setRenderer(new IntellicutListRenderer(IntellicutMode.NOTHING));
       
        InputOutputAdapter adapter = new InputOutputAdapter(inputExpr, outputExpr, workspace, typeCheckInfo);
        setModel(new IntellicutListModel (adapter));
       
        // Set a preferred size so that the list is not its default narrow width.
        Dimension prefSize = getPreferredSize();
        setPreferredSize(new Dimension(200, prefSize.height));
View Full Code Here


     * @param inputExpr a list of valid input types to the gems
     * @param outputExpr a list of valid output types to the gems
     */
    public void rebuildList(TypeExpr[] inputExpr, TypeExpr[] outputExpr) {
        hidePopup();
        InputOutputAdapter adapter = (InputOutputAdapter) ((IntellicutListModel) getModel()).getAdapter();
        adapter.reset(inputExpr, outputExpr);
    }
View Full Code Here

TOP

Related Classes of org.openquark.gems.client.IntellicutListModelAdapter.InputOutputAdapter

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.