Package com.l2fprod.common.propertysheet

Examples of com.l2fprod.common.propertysheet.PropertySheetTable$ToggleAction


                            throw new UnsupportedOperationException("Method writeToObject not yet implemented");
                        }
                    };
                    propertySheetTableModel.addProperty(p);
                }
                final PropertySheetTable table = new PropertySheetTable(propertySheetTableModel);
                new Thread(new Runnable()
                {
                    public void run()
                    {
                        while(true)
View Full Code Here


         *
         * @see javax.swing.event.ListSelectionListener#valueChanged(javax.swing. event.ListSelectionEvent)
         */
        @Override
        public void valueChanged(ListSelectionEvent evt) {
            final PropertySheetTable table = propertySheetPanel.getTable();
            final DefaultListModel model = (DefaultListModel) jlPropertyDetails.getModel();

            SwingUtilities.invokeLater(new Runnable() {

                @SuppressWarnings("unchecked")
                @Override
                public void run() {
                    int rowIndex = table.getSelectedRow();
                    if (0 > rowIndex) { return; }
                    Object value = table.getValueAt(rowIndex, 1);

                    model.clear();

                    if (null == value) {
                        model.addElement("<null> value!");
View Full Code Here

        propertySheetPanel.setMinimumSize(new Dimension(200, 200));
        propertySheetPanel.setPreferredSize(new Dimension(200, 200));
        propertySheetPanel.setSize(new Dimension(200, 200));
        propertySheetPanel.setRendererFactory(new XSRenderFactory());
        // setup table
        final PropertySheetTable table = propertySheetPanel.getTable();
        table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        table.getSelectionModel().addListSelectionListener(new TableSelectionControl());
        table.setCellEditor(null);
    }
View Full Code Here

  /**
   * Generate a property sheet panel from {@link GeneratorOptionsProperty}
   */
  public GeneratorPropertySheetPanel() {
    /* custom PropertySheetTable to sort tooltips by field */
    super(new PropertySheetTable() {
      private static final long serialVersionUID = 1L;
      @Override
      public String getToolTipText(MouseEvent me) {
        final java.awt.Point pt = me.getPoint();
        final int row = rowAtPoint(pt);
View Full Code Here

TOP

Related Classes of com.l2fprod.common.propertysheet.PropertySheetTable$ToggleAction

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.