@Override protected Date getValueAsDate(Object value) { MongoNodeDescriptor descriptor = (MongoNodeDescriptor) value; return super.getValueAsDate(descriptor.getValue()); }
/** Tells listeners that a column was removed from the model. */ @Override public void columnRemoved(TableColumnModelEvent e) { if (!isVisibilityChange(e, false)) { populatePopup(); } }
ColumnFactory factory = new ColumnFactory() { @Override public void configureTableColumn(TableModel model, TableColumnExt column) { super.configureTableColumn(model, column); if (... your condition to disable sortable) { column.setSortable(false); } } } table.setColumnFactory(factory); table.setModel(model);
/** * * removes all components from the popup, making sure to release all * columnVisibility actions. * */ protected void clearAll() { clearColumnVisibilityActions(); getColumnControlPopup().removeAll(); }
/** * Toggles the popup component's visibility. This method is * called by this control's default action. <p> * * Here: delegates to getControlPopup(). */ public void togglePopup() { getColumnControlPopup().toggleVisibility(this); }
@Override public void populatePopup() { super.populatePopup(); if (customActions != null && popup instanceof DefaultColumnControlPopup) { ((DefaultColumnControlPopup) popup).addAdditionalActionItems(customActions); } }
@Override public void setForeground(Color foreground) { if (label != null) { Color old = getForeground(); label.setForeground(foreground); firePropertyChange("foreground", old, getForeground()); } }
public void setVerticalAlignment(int alignment) { int old = getVerticalAlignment(); label.setVerticalAlignment(alignment); firePropertyChange("verticalAlignment", old, getVerticalAlignment()); }
public void setVerticalTextPosition(int textPosition) { int old = getVerticalTextPosition(); label.setVerticalTextPosition(textPosition); firePropertyChange("verticalTextPosition", old, getVerticalTextPosition()); }
@Override public void setBackground(Color background) { // this is called somewhere along initialization of super? if (label != null) { Color old = getBackground(); label.setBackground(background); firePropertyChange("background", old, getBackground()); } }
public void setIcon(Icon icon) { Icon old = getIcon(); label.setIcon(icon); firePropertyChange("icon", old, getIcon()); }
/** Tells listeners that a column was added to the model. */ @Override public void columnAdded(TableColumnModelEvent e) { // quickfix for #192 if (!isVisibilityChange(e, true)) { populatePopup(); } }
/** * * removes all components from the popup, making sure to release all * columnVisibility actions. * */ protected void clearAll() { clearColumnVisibilityActions(); getColumnControlPopup().removeAll(); }
/** * Toggles the popup component's visibility. This method is * called by this control's default action. <p> * * Here: delegates to getControlPopup(). */ public void togglePopup() { getColumnControlPopup().toggleVisibility(this); }
/** Tells listeners that a column was added to the model. */ public void columnAdded(TableColumnModelEvent e) { // quickfix for #192 if (!isVisibilityChange(e, true)) { populatePopup(); } }
/** * * removes all components from the popup, making sure to release all * columnVisibility actions. * */ protected void clearAll() { clearColumnVisibilityActions(); getColumnControlPopup().removeAll(); }
/** Tells listeners that a column was added to the model. */ @Override public void columnAdded(TableColumnModelEvent e) { // quickfix for #192 if (!isVisibilityChange(e, true)) { populatePopup(); } }
/** Tells listeners that a column was removed from the model. */ @Override public void columnRemoved(TableColumnModelEvent e) { if (!isVisibilityChange(e, false)) { populatePopup(); } }
/** Tells listeners that a column was removed from the model. */ @Override public void columnRemoved(TableColumnModelEvent e) { if (!isVisibilityChange(e, false)) { populatePopup(); } }
/** Tells listeners that a column was removed from the model. */ @Override public void columnRemoved(TableColumnModelEvent e) { if (!isVisibilityChange(e, false)) { populatePopup(); } }