/** * Method to check if we can control column visibility POST: if true we can * be sure to have an extended TableColumnModel * * @return boolean to indicate if controlling the visibility state is * possible. */ protected boolean canControl() { return table.getColumnModel() instanceof TableColumnModelExt; }
/** * Method to check if we can control column visibility POST: if true we can * be sure to have an extended TableColumnModel * * @return boolean to indicate if controlling the visibility state is * possible. */ protected boolean canControl() { return table.getColumnModel() instanceof TableColumnModelExt; }
/** * Method to check if we can control column visibility POST: if true we can * be sure to have an extended TableColumnModel * * @return boolean to indicate if controlling the visibility state is * possible. */ protected boolean canControl() { return table.getColumnModel() instanceof TableColumnModelExt; }
/** * Method to check if we can control column visibility POST: if true we can * be sure to have an extended TableColumnModel * * @return boolean to indicate if controlling the visibility state is * possible. */ protected boolean canControl() { return table.getColumnModel() instanceof TableColumnModelExt; }
/** * Method to check if we can control column visibility POST: if true we can * be sure to have an extended TableColumnModel * * @return boolean to indicate if controlling the visibility state is * possible. */ protected boolean canControl() { return table.getColumnModel() instanceof TableColumnModelExt; }
/** * Sets the sessions table column sizes. */ private void setSessionsTableColumnSizes() { sessionsTable.getColumnModel().getColumn(0).setMinWidth(60); sessionsTable.getColumnModel().getColumn(0).setPreferredWidth(60); // active sessionsTable.getColumnModel().getColumn(1).setMinWidth(120); sessionsTable.getColumnModel().getColumn(1).setPreferredWidth(200); // name sessionsTable.getColumnModel().getColumn(3).setMinWidth(100); sessionsTable.getColumnModel().getColumn(3).setPreferredWidth(150); // matched }
/** * Returns a <code>List</code> of visible <code>TableColumn</code>s. * * @return a <code>List</code> of visible columns. * @see #getColumns(boolean) */ public List<TableColumn> getColumns() { return Collections.list(getColumnModel().getColumns()); }
/** * Returns a <code>List</code> of visible <code>TableColumn</code>s. * * @return a <code>List</code> of visible columns. * @see #getColumns(boolean) */ public List<TableColumn> getColumns() { return Collections.list(getColumnModel().getColumns()); }
/** * Returns a <code>List</code> of visible <code>TableColumn</code>s. * * @return a <code>List</code> of visible columns. * @see #getColumns(boolean) */ public List<TableColumn> getColumns() { return Collections.list(getColumnModel().getColumns()); }
/** * Returns a <code>List</code> of visible <code>TableColumn</code>s. * * @return a <code>List</code> of visible columns. * @see #getColumns(boolean) */ public List<TableColumn> getColumns() { return Collections.list(getColumnModel().getColumns()); }
/** * Returns a <code>List</code> of visible <code>TableColumn</code>s. * * @return a <code>List</code> of visible columns. * @see #getColumns(boolean) */ public List<TableColumn> getColumns() { return Collections.list(getColumnModel().getColumns()); }
/** * Sets the margin between columns. * * Convenience to expose column model properties through * <code>JXTable</code> api. * * @param value margin between columns; must be greater than or equal to * zero. * @see #getColumnMargin() * @see TableColumnModel#setColumnMargin(int) */ public void setColumnMargin(int value) { getColumnModel().setColumnMargin(value); }
public ExcludedParameterPanel(ExcludedParameterTableModel model) { super(model); getTable().setSortOrder(0, SortOrder.ASCENDING); getTable().getColumnModel().getColumn(0).setPreferredWidth(100); getTable().getColumnModel().getColumn(1).setPreferredWidth(50); getTable().getColumnModel().getColumn(2).setPreferredWidth(200); }
/** * {@inheritDoc} */ @Override public boolean hasFocus() { boolean rowIsLead = (table.getSelectionModel() .getLeadSelectionIndex() == row); boolean colIsLead = (table.getColumnModel().getSelectionModel() .getLeadSelectionIndex() == column); return table.isFocusOwner() && (rowIsLead && colIsLead); }
/** * {@inheritDoc} */ @Override public boolean hasFocus() { boolean rowIsLead = (table.getSelectionModel() .getLeadSelectionIndex() == row); boolean colIsLead = (table.getColumnModel().getSelectionModel() .getLeadSelectionIndex() == column); return table.isFocusOwner() && (rowIsLead && colIsLead); }
/** * {@inheritDoc} */ @Override public boolean hasFocus() { boolean rowIsLead = (table.getSelectionModel() .getLeadSelectionIndex() == row); boolean colIsLead = (table.getColumnModel().getSelectionModel() .getLeadSelectionIndex() == column); return table.isFocusOwner() && (rowIsLead && colIsLead); }
/** * {@inheritDoc} */ @Override public boolean hasFocus() { boolean rowIsLead = (table.getSelectionModel() .getLeadSelectionIndex() == row); boolean colIsLead = (table.getColumnModel().getSelectionModel() .getLeadSelectionIndex() == column); return table.isFocusOwner() && (rowIsLead && colIsLead); }
/** * {@inheritDoc} */ @Override public boolean hasFocus() { boolean rowIsLead = (table.getSelectionModel() .getLeadSelectionIndex() == row); boolean colIsLead = (table.getColumnModel().getSelectionModel() .getLeadSelectionIndex() == column); return table.isFocusOwner() && (rowIsLead && colIsLead); }
@Override protected void format(CellContext context) { //Set image or text int witdth = table.getColumnModel().getColumn(context.getColumn()).getWidth(); int height = table.getRowHeight(context.getRow()); String text = getTextFromValue(context.getValue()); rendererLabel.setSize(witdth, height); rendererLabel.setToolTipText(text); rendererLabel.setBorder(null); setImagePainter((TimeSet) context.getValue(), context.isSelected()); }
@Override protected void format(CellContext context) { //Set image or text int witdth = table.getColumnModel().getColumn(context.getColumn()).getWidth(); int height = table.getRowHeight(context.getRow()); String text = getTextFromValue(context.getValue()); rendererLabel.setSize(witdth, height); rendererLabel.setToolTipText(text); rendererLabel.setBorder(null); setImagePainter(context.getValue(), context.isSelected()); }