/** * Sets the {@code FileDrop} as enabled or disabled. * * @param active {@code true} if the {@code FileDrop} should become active, and {@code false} otherwise * @since 1.1 */ public void setActive(boolean active) { if (supportsDnD()) makeDropTargetActive(out, c, recursive, active); }
@Override public void actionPerformed(ActionEvent actionEvent) { final AdvancedJTable parent = AdvancedJTable.this; final int[] selectedRows = parent.getSelectedRows(); parent.selectAll(); for (int selectedRow : selectedRows) parent.removeRowSelectionInterval(selectedRow, selectedRow); } };
public CheckBoxRenderer() { super(); this.setHorizontalAlignment(JLabel.CENTER); this.setBorderPainted(false); this.setOpaque(true); }
public void type(int i) { this.delay(40); this.keyPress(i); this.keyRelease(i); }
@Override public void setValueAt(Object value, int row, int column) { super.setValueAt(value, row, column); } }
/** * Sets the 'Select All' property for all event types. * * @param isSelectAllForEdit {@code true} if 'select all' must be apply, and {@code false} otherwise * @since 0.3.1 */ public void setSelectAllForEdit(boolean isSelectAllForEdit) { setSelectAllForActionEvent(isSelectAllForEdit); setSelectAllForKeyEvent(isSelectAllForEdit); setSelectAllForMouseEvent(isSelectAllForEdit); }
@Override public DefaultTableModel getModel() { return ((DefaultTableModel) super.getModel()); }
/** * Default constructor. * * @since 0.2.0 */ public NumberCellRenderer() { nf = new InfNumberFormat("##.##"); nf.setGroupingUsed(false); }
public Robot() throws AWTException { super(); this.setAutoDelay(40); this.setAutoWaitForIdle(true); }
/** * Constructor that allows to set the table model. * * @param model Table model * @since 0.2.0 */ public AdvancedJTable(TableModel model) { this(); this.setModel(model); }
/** * Allows setting the label. * * @param label New label for the wrapped object * @since 0.3.1 */ public void setLabel(String label) { checkIsModifiable(); this.label = label; }
/** * Constructor that allows configuring the maximum number of decimal digits. * * @param maxNumDecimals Maximum number of decimal digits * @since 0.3.1 */ public NumberCellRenderer(int maxNumDecimals) { this(); nf.setMaximumFractionDigits(maxNumDecimals); }
/** * Returns a {@code String} representation of the object. It is an alias of * the {@link #getLabel() getLabel()} method. * * @return {@code String} representation of the object * @since 0.2.2 */ @Override public String toString() { return getLabel(); }
@Override public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { JPopUpButton.this.setSelected(false); }
/** * Re-configures the number of fixed columns. * * @param frozenColumns Number of columns to be fixed * @since 0.3.0 */ public final void setFrozenColumns(final int frozenColumns) { rearrangeColumns(frozenColumns); this.frozenColumns = frozenColumns; }
public void type(int i, int m) { this.delay(40); this.keyPress(m); this.keyPress(i); this.keyRelease(m); this.keyRelease(i); }
@Override public void setValueAt(Object value, int row, int column) { super.setValueAt(value, row, column); }
/** * Allows setting the object. * * @param object Object to be wrapped * @since 0.3.1 */ public void setObject(T object) { checkIsModifiable(); this.object = object; // if (object instanceof NetworkElement) // throw new RuntimeException("StringLabeller should not work with NetworkElements"); }
@Override public void setValueAt(Object value, int row, int column) { super.setValueAt(value, row, column); } }