/** * Defines an <code>Action</code> object with a default description string and default icon. */ public SortBulkUpAction( final BulkDataProvider tableModel, final ListSelectionModel listSelectionModel ) { if ( tableModel == null ) { throw new NullPointerException(); } if ( listSelectionModel == null ) { throw new NullPointerException(); } this.tableModel = tableModel; this.listSelectionModel = listSelectionModel; putValue( Action.SMALL_ICON, Messages.getInstance().getIcon( "Icons.MOVE_UP" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "Action.MOVE_UP" ) ); }
private RemoveEntryAction( final ArrayTableModel tableModel, final ListSelectionModel selectionModel ) { this.tableModel = tableModel; putValue( Action.SMALL_ICON, Messages.getInstance().getIcon( "Icons.Remove" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "ArrayCellEditorDialog.RemoveEntry.Description" ) ); this.selectionModel = selectionModel; this.selectionModel.addListSelectionListener( this ); }
/** * Defines an <code>Action</code> object with a default description string and default icon. */ public SortBulkDownAction( final BulkDataProvider tableModel, final ListSelectionModel listSelectionModel ) { this.tableModel = tableModel; this.listSelectionModel = listSelectionModel; this.listSelectionModel.addListSelectionListener( this ); putValue( Action.SMALL_ICON, Messages.getInstance().getIcon( "Icons.MOVE_DOWN" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "Action.MOVE_DOWN" ) ); }
public RemoveBulkAction( final BulkDataProvider tableModel, final ListSelectionModel listSelectionModel ) { this.tableModel = tableModel; this.listSelectionModel = listSelectionModel; this.listSelectionModel.addListSelectionListener( new SelectionUpdateHandler() ); putValue( Action.SMALL_ICON, Messages.getInstance().getIcon( "Icons.REMOVE" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "Action.REMOVE" ) ); }
/** * Defines an <code>Action</code> object with a default description string and default icon. */ private AddSelectionAction( final ListSelectionModel selectionModel ) { this.selectionModel = selectionModel; putValue( Action.SMALL_ICON, Messages.getInstance().getIcon( "Icons.ForwardArrow" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "ArrayCellEditorDialog.AddRow" ) ); selectionModel.addListSelectionListener( this ); setEnabled( selectionModel.isSelectionEmpty() == false ); }
private AddEntryAction( final ArrayTableModel tableModel ) { this.tableModel = tableModel; putValue( Action.SMALL_ICON, Messages.getInstance().getIcon( "Icons.Add" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "ArrayCellEditorDialog.AddEntry.Description" ) ); }