* @param menuType Menu type instance to return
* @return Menu or null if not found
*/
- public Menu getMenu (final String menuType) {
+ private Menu getMenu (final String menuType) {
// Default is not found
Menu menu = null;
// Trace message
this.getLogger().trace(MessageFormat.format("menuType={0} - CALLED!", menuType)); //NOI18N
+ // Get menu from type
Menu menu = this.getMenu(menuType);
// Is the menu set?
import java.sql.SQLException;
import org.mxchange.addressbook.client.AddressbookClient;
import org.mxchange.addressbook.client.BaseAddressbookClient;
-import org.mxchange.addressbook.menu.Menu;
import org.mxchange.addressbook.menu.item.SelectableMenuItem;
import org.mxchange.jcore.application.Application;
import org.mxchange.jcore.exceptions.FrameAlreadyInitializedException;
}
@Override
- public void doChangeOwnAddressData (Contact contact) {
+ public void doChangeOwnAddressData (final Contact contact) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
}
@Override
- public void doChangeOwnNameData (Contact contact) {
+ public void doChangeOwnNameData (final Contact contact) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
}
@Override
- public void doChangeOwnOtherData (Contact contact) {
+ public void doChangeOwnOtherData (final Contact contact) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
}
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
}
- @Override
- public Menu getMenu (final String menuType) {
- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
- }
-
/**
* Returns a Swing menu item
*
this.getLogger().trace("EXIT!"); //NOI18N
}
- @Override
- public final int size () throws IOException {
- // Init size
- int size = -1;
-
- try {
- size = ((AddressbookContactFrontend) this.getFrontend()).getContactsCount();
- } catch (final SQLException ex) {
- // Something happened
- this.abortProgramWithException(ex);
- }
-
- // Return amount
- return size;
- }
-
/**
* Fills the column names array with strings from bundle
*/