/** * This method is called when the wizard should jump to the next page. This * may be overridden to change the default behavior (jumpting to the next * available page). */ public void doNext() { final Wizard wizard = getWizard(); wizard.jumpRelative( 1 ); }
/** * Add element at the specified index to the list and select it. * * @param index Index in list to add element at. * @param element Element to add to the list. */ public void addElement( final int index, final E element ) { _list.add( index, element ); setSelectedIndex( index ); }
@Override public boolean add( final T element ) { synchronized ( _queue ) { if ( element != null ) { addToQueue( new QueueElement<T>( element ) ); } return super.add( element ); } }
public void toggleSelection( final TreePath path ) { final CheckTreeSelectionModel selectionModel = getSelectionModel(); setSelection( path, !selectionModel.isPathSelected( path, true ) ); }
/** * Get title of currently active page. * * @return Title of currently active page. */ public final String getTitle() { final CardPage page = getActivePage(); return ( ( page != null ) ? page.getTitle() : "???" ); }
/** * Jump to previous page. */ public void doPrevious() { final WizardPage page = getActivePage(); if ( page != null ) { page.doPrevious(); } }
/** * Add element to end of the list and select it. * * @param element Element to add to the list. */ public void addElement( final E element ) { addElement( _list.size(), element ); }
public void setIndeterminate() { getTristateModel().setIndeterminate(); }
public boolean isIndeterminate() { return getTristateModel().isIndeterminate(); }
/** * Jump to next page. */ public void doNext() { final WizardPage page = getActivePage(); if ( page != null ) { page.doNext(); } }
/** * Constructs a new sorter for the given model. * * @param model Model to be sorted. */ public ListRowSorter( final M model ) { _model = model; _stringConverter = null; setModelWrapper( new ListRowSorterModelWrapper() ); }
public TristateState getState() { return getTristateModel().getState(); }
/** * Get keystroke used as keyboard accelerator. * * @return Keystroke used as keyboard accelerator. * * @see #ACCELERATOR_KEY * @see KeyStroke */ public KeyStroke getAcceleratorKey() { return (KeyStroke)getValue( ACCELERATOR_KEY ); }
@Override public void add( final int index, final T element ) { synchronized ( _queue ) { if ( element != null ) { addToQueue( new QueueElement<T>( element ) ); } super.add( index, element ); } }
/** * This method is called when the wizard should jump to the previous page. * This may be overridden to change the default behavior (jumping to the * previous available page). */ public void doPrevious() { final Wizard wizard = getWizard(); wizard.jumpRelative( -1 ); }