Examples of XTable


Examples of fr.soleil.salsa.client.view.component.XTable

     * @return javax.swing.JList
     */
    public XTable getElementList() {
        if (elementTable == null) {
            DefaultListSelectionModel defaultListSelectionModel1 = new DefaultListSelectionModel();
            elementTable = new XTable();

            // elementTable.setDefaultEditor(String.class, new CellStringEditor());
            elementTable.setBorder(new LineBorder(Color.GRAY, 2));
            // Editor
            elementTable.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
View Full Code Here

Examples of fr.soleil.salsa.client.view.component.XTable

     * @return javax.swing.JList
     */
    public XTable getElementList() {
        if (elementTable == null) {
            DefaultListSelectionModel defaultListSelectionModel1 = new DefaultListSelectionModel();
            elementTable = new XTable();

            // elementTable.setDefaultEditor(String.class, new CellStringEditor());
            elementTable.setBorder(new LineBorder(Color.GRAY, 2));
            // Editor
            elementTable.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
View Full Code Here

Examples of fr.soleil.salsa.client.view.component.XTable

     * @return javax.swing.JList
     */
    public XTable getElementList() {
        if (elementTable == null) {
            DefaultListSelectionModel defaultListSelectionModel1 = new DefaultListSelectionModel();
            elementTable = new XTable();

            // elementTable.setDefaultEditor(String.class, new CellStringEditor());
            elementTable.setBorder(new LineBorder(Color.GRAY, 2));
            // Editor
            elementTable.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
View Full Code Here

Examples of net.xoetrope.awt.XTable

    project.getStyleManager().load( "appstyles.xml" );
  }

  public void testTable()
  {
    XTable table = new XTable();
//    String[] cols = {"col 1", "col 2", "col 3"};
//    table.addColumns( cols );
    table.setStyle("base/TableData");
    table.setHeaderStyle("base/TableHeading");
    table.setSelectedStyle( "base/TableSelection" );
//    table.setModel( createManualDatasource() );
    table.setModel( createDatasource() );
    table.setInteractiveTable( true );
    table.setSelectedRow( 2 );

    frame = new Frame( "XTable test" );
    frame.setLayout(null);
    frame.setSize( 640, 480 );
    table.setColWidth( 0, 150 );
    table.setBounds( 20, 80, 400, 200 );
    table.setBackground( java.awt.Color.white );
    frame.add(table);
    frame.setVisible(true);
    frame.show();

    assertTrue( table.getSelectedRow() == 2 );
  }
View Full Code Here

Examples of net.xoetrope.html.XTable

   
    public void visibleOther() {
        XCheckbox check1 = (XCheckbox)findComponent( obj, "check1" );
        XLabel lab1 = (XLabel)findComponent( "lab1" );
        XLabel lab2 = (XLabel)findComponent( "lab2" );
        XTable table = (XTable)findComponent( "table" );
        XImage img = (XImage)findComponent( "img" );
        if ( check1.isSelected() ) {
            lab1.setVisible( false );
            lab2.setVisible( false );
            table.setVisible( false );
            img.setVisible( false );
        } else {
            lab1.setVisible( true );
            lab2.setVisible( true );
            table.setVisible( true );
            img.setVisible( true );
        }
    }
View Full Code Here

Examples of net.xoetrope.html.XTable

        }
    }
   
    public void changeCellColor() {
        XCheckbox check3 = (XCheckbox)findComponent( obj, "check3" );
        XTable table = (XTable)findComponent( "table" );
        if ( check3.isSelected() ) {
            table.setBackgroundColorAt( 1, 3, "#FF3333" );
            table.setBackgroundColorAt( 2, 2, "#FFCCAA" );
            table.setBackgroundColorAt( 2, 5, "#ABCDEF" );
            table.setBackgroundColorAt( 3, 1, "#FEDCBA" );
        } else {
            table.setBackgroundColorAt( 1, 3, "" );
            table.setBackgroundColorAt( 2, 2, "" );
            table.setBackgroundColorAt( 2, 5, "" );
            table.setBackgroundColorAt( 3, 1, "" );
        }
    }
View Full Code Here

Examples of net.xoetrope.html.XTable

   
    public void changeFontColorOther() {
        XCheckbox check2 = (XCheckbox)findComponent( obj, "check2" );
        XLabel lab1 = (XLabel)findComponent( "lab1" );
        XLabel lab2 = (XLabel)findComponent( "lab2" );
        XTable table = (XTable)findComponent( "table" );
        if ( check2.isSelected() ) {
            lab1.setFontColor( "#FF3333" );
            lab2.setFontColor( "#FF3333" );
            table.setFontColor( "#CCEEEE" );
        } else {
            lab1.setFontColor( "" );
            lab2.setFontColor( "" );
            table.setFontColor( "" );
        }
    }
View Full Code Here

Examples of net.xoetrope.html.XTable

   
    public void font10Other() {
        XRadioButton radio1 = (XRadioButton)findComponent( obj, "radio1" );
        XLabel lab1 = (XLabel)findComponent( "lab1" );
        XLabel lab2 = (XLabel)findComponent( "lab2" );
        XTable table = (XTable)findComponent( "table" );
        if ( radio1.isSelected() ) {
            lab1.setFontSize( 10 );
            lab2.setFontSize( 10 );
            table.setFontSize( 10 );
        }
    }
View Full Code Here

Examples of net.xoetrope.html.XTable

   
    public void font16Other() {
        XRadioButton radio2 = (XRadioButton)findComponent( obj, "radio2" );
        XLabel lab1 = (XLabel)findComponent( "lab1" );
        XLabel lab2 = (XLabel)findComponent( "lab2" );
        XTable table = (XTable)findComponent( "table" );
        if ( radio2.isSelected() ) {
            lab1.setFontSize( 16 );
            lab2.setFontSize( 16 );
            table.setFontSize( 16 );
        }
    }
View Full Code Here

Examples of net.xoetrope.html.XTable

   
     public void font22Other() {
        XRadioButton radio3 = (XRadioButton)findComponent( obj, "radio3" );
        XLabel lab1 = (XLabel)findComponent( "lab1" );
        XLabel lab2 = (XLabel)findComponent( "lab2" );
        XTable table = (XTable)findComponent( "table" );
        if ( radio3.isSelected() ) {
            lab1.setFontSize( 22 );
            lab2.setFontSize( 22 );
            table.setFontSize( 22 );
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.