/src/mpv5/ui/frames/MPView.java
Java | 1483 lines | 1147 code | 131 blank | 205 comment | 78 complexity | 1b2ddcf14e1380209a87e3fa685012fe MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, GPL-3.0, GPL-2.0, AGPL-3.0, JSON, BSD-3-Clause
Large files files are truncated, but you can click here to view the full file
- /*
- * MPView.java
- */
- package mpv5.ui.frames;
-
- import com.l2fprod.common.swing.JOutlookBar;
- import enoa.connection.NoaConnection;
- import enoa.connection.NoaConnectionLocalServer;
- import java.awt.BorderLayout;
- import java.awt.Color;
- import java.awt.Component;
- import java.awt.Cursor;
- import java.awt.Dimension;
- import java.awt.Image;
- import java.awt.Toolkit;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.awt.event.ComponentAdapter;
- import java.awt.event.ComponentEvent;
- import java.awt.event.MouseAdapter;
- import java.awt.event.MouseEvent;
- import java.awt.event.MouseListener;
- import java.io.File;
- import java.net.URI;
- import java.util.ArrayList;
- import java.util.LinkedList;
- import java.util.List;
- import java.util.logging.Level;
- import java.util.logging.Logger;
- import javax.swing.ImageIcon;
- import javax.swing.JButton;
- import javax.swing.JComboBox;
- import javax.swing.JComponent;
- import javax.swing.JFrame;
- import javax.swing.JLabel;
- import javax.swing.JMenu;
- import javax.swing.JMenuItem;
- import javax.swing.JPopupMenu;
- import javax.swing.JProgressBar;
- import javax.swing.JScrollPane;
- import javax.swing.JTable;
- import javax.swing.JViewport;
- import javax.swing.SwingUtilities;
- import javax.swing.UIManager;
- import mpv5.Main;
- import mpv5.YabsView;
- import mpv5.YabsViewProxy;
- import mpv5.YabsViewProxy.FlowProvider;
- import mpv5.bugtracker.ExceptionHandler;
- import mpv5.bugtracker.SubmitForm;
- import mpv5.data.MPList;
- import mpv5.db.common.Context;
- import mpv5.db.common.DatabaseObject;
- import mpv5.db.common.NodataFoundException;
- import mpv5.db.common.QueryHandler;
- import mpv5.db.migration.MigrationWB;
- import mpv5.db.objects.Contact;
- import mpv5.db.objects.Favourite;
- import mpv5.db.objects.Item;
- import mpv5.db.objects.Product;
- import mpv5.db.objects.User;
- import mpv5.db.objects.ValueProperty;
- import mpv5.globals.Constants;
- import mpv5.globals.LocalSettings;
- import mpv5.globals.Messages;
- import mpv5.handler.Scheduler;
- import mpv5.logging.Log;
- import mpv5.pluginhandling.YabsPluginLoader;
- import mpv5.server.MPServer;
- import mpv5.ui.dialogs.About;
- import mpv5.ui.dialogs.BigPopup;
- import mpv5.ui.dialogs.DialogForFile;
- import mpv5.ui.dialogs.ListView;
- import mpv5.ui.dialogs.Popup;
- import mpv5.ui.dialogs.Search;
- import mpv5.ui.dialogs.Search2;
- import mpv5.ui.dialogs.Wizard;
- import mpv5.ui.dialogs.subcomponents.ControlPanel_MailTemplates;
- import mpv5.ui.dialogs.subcomponents.wizard_CSVImport2_1;
- import mpv5.ui.dialogs.subcomponents.wizard_MP45_Import;
- import mpv5.ui.dialogs.subcomponents.wizard_XMLImport_1;
- import mpv5.ui.dialogs.subcomponents.wizard_XMLImport_2;
- import mpv5.ui.dialogs.subcomponents.wizard_Yabs1_Import;
- import mpv5.ui.menus.ClipboardMenuItem;
- import mpv5.ui.menus.FavouritesMenuItem;
- import mpv5.ui.misc.CloseableTabbedPane;
- import mpv5.ui.misc.FadeOnChangeLabel;
- import mpv5.ui.misc.MPTable;
- import mpv5.ui.misc.Position;
- import mpv5.ui.panels.ActivityConfirmationPanel;
- import mpv5.ui.panels.ChangeNotApprovedException;
- import mpv5.ui.panels.ContactsList;
- import mpv5.ui.panels.ConversationPanel;
- import mpv5.ui.panels.DataPanel;
- import mpv5.ui.panels.ExpensePanel;
- import mpv5.ui.panels.GeneralListPanel;
- import mpv5.ui.panels.HistoryPanel;
- import mpv5.ui.panels.ItemPanel;
- import mpv5.ui.panels.JournalPanel;
- import mpv5.ui.panels.MPControlPanel;
- import mpv5.ui.panels.MassPrintPanel;
- import mpv5.ui.panels.ProductList;
- import mpv5.ui.panels.ProductListsPanel;
- import mpv5.ui.panels.ProductOrderPanel;
- import mpv5.ui.panels.ProductPanel;
- import mpv5.ui.panels.ProductsOverview;
- import mpv5.ui.panels.QueryPanel;
- import mpv5.ui.panels.RevenuePanel;
- import mpv5.ui.panels.StartPage;
- import mpv5.ui.panels.TrashPanel;
- import mpv5.usermanagement.MPSecurityManager;
- import mpv5.utils.export.Export;
- import mpv5.utils.export.VCFParser;
- import mpv5.utils.files.TextDatFile;
- import mpv5.utils.images.MPIcon;
- import mpv5.utils.renderer.ComboBoxRendererForTooltip;
- import mpv5.utils.xml.XMLWriter;
- import net.sf.vcard4j.java.VCard;
- import org.jdesktop.application.Application;
- import org.jdesktop.application.FrameView;
- import org.jdesktop.application.SingleFrameApplication;
-
- /**
- * The application's main frame.
- */
- public class MPView extends FrameView implements YabsView, FlowProvider {
-
- public static MPView identifierView;
- private static Dimension initialSize = new Dimension(1100, 900);
- public static JFrame identifierFrame;
- private static CloseableTabbedPane tabPane;
- private static JLabel messagelabel = new JLabel();
- private static JComboBox history = new JComboBox();
- private static JProgressBar progressbar = new JProgressBar();
- private static JMenu favMenu;
- private static String predefTitle;
- private static DialogForFile filedialog;
- public static SingleFrameApplication identifierApplication;
- private static boolean navBarAnimated = true;
- private static boolean tabPaneScrolled = false;
- private static JLabel staterrorlabel = new JLabel();
- private static MPList currentList = new MPList();
- private static ListView clistview = new ListView(currentList);
- private static JFrame clipboard = null;
- private static boolean loaded = false;
-
- /**
- * Display a message at the bottom of the MP frame
- *
- * @param message
- */
- public void addMessage(Object message, Color color) {
- addMessage(String.valueOf(message));
- }
-
- /**
- * Display a message at the bottom of the MP frame
- *
- * @param message
- */
- public void addMessage(Object message) {
- MPView.addMessage(String.valueOf(message), Color.GREEN);
- }
-
- /**
- * Display a message at the bottom of the MP frame
- *
- * @param message
- */
- public static synchronized void addMessage(final String message, final Color color) {
- if (loaded && messagelabel !=null) {//dont do anything if main frame is not constructed
- Runnable runnable = new Runnable() {
- public void run() {
- if (messagelabel instanceof FadeOnChangeLabel) {
- ((FadeOnChangeLabel) getMessagelabel()).setFadeColor(color);
- }
- messagelabel.setText(message);
- getHistory().addItem(message);
- getHistory().setSelectedItem(message);
- identifierFrame.validate();
- }
- };
- SwingUtilities.invokeLater(runnable);
- }
- }
-
- /**
- * Returns the currently selected tab on the main tab pane
- *
- * @return
- */
- public static Object getShowingTab() {
- return getTabPane().getSelectedComponent();
- }
-
- /**
- * Change the navigation bar behavior
- *
- * @param animated
- */
- public static void setNavBarAnimated(boolean animated) {
- navBarAnimated = animated;
- }
-
- /**
- * Change the main tabPane behavior
- *
- * @param scroll
- */
- public static void setTabPaneScrolled(boolean scroll) {
- tabPaneScrolled = scroll;
- }
-
- /**
- * Shows a file save dialog with the selcted file f. If the file's parent
- * directory is not the current directory, changes the current directory to
- * be the file's parent directory.
- *
- * @param f
- */
- public void showFilesaveDialogFor(File f) {
- getFiledialog().setSelectedFile(new File(f.getName()));
- getFiledialog().saveFile(f);
- }
-
- /**
- * Initialize and show the secondary JFrame. This method is intended for
- * showing "secondary" windows, like message dialogs, about boxes, and so
- * on.
- *
- * Unlike the mainFrame, dismissing a secondary window will not exit the
- * application. Session state is only automatically saved if the specified
- * JFrame has a name, and then only for component descendants that are
- * named. Throws an IllegalArgumentException if c is null
- *
- * @param c
- */
- public static void show(JFrame c) {
- Main.getApplication().show(c);
- }
- /**
- * The handler for all plugins
- */
- private static YabsPluginLoader pluginLoader;
-
- /**
- * Let the view notify the user about an unexpected error
- */
- public static void showError() {
- if (Main.INSTANTIATED) {
- try {
- getStaterrorlabel().setIcon(new javax.swing.ImageIcon(MPView.class.getResource("/mpv5/resources/images/16/remove.png"))); // NOI18N
- } catch (Exception e) {
- }
- }
- }
-
- /**
- * @return the tabPane
- */
- public static CloseableTabbedPane getTabPane() {
- return tabPane;
- }
-
- /**
- * @return the messagelabel
- */
- public static JLabel getMessagelabel() {
- return messagelabel;
- }
-
- /**
- * @return the progressbar
- */
- public JProgressBar getProgressbar() {
- return progressbar;
- }
-
- /**
- * @return the tabpanePanel
- */
- public static javax.swing.JPanel getTabpanePanel() {
- return tabpanePanel;
- }
-
- /**
- * @return the identifierView
- */
- public MPView getIdentifierView() {
- return identifierView;
- }
-
- /**
- * @return the initialSize
- */
- public static Dimension getInitialSize() {
- return initialSize;
- }
-
- /**
- * @return the identifierFrame
- */
- public JFrame getIdentifierFrame() {
- return identifierFrame;
- }
-
- /**
- * @return the history
- */
- public static JComboBox getHistory() {
- return history;
- }
-
- /**
- * @return the favMenu
- */
- public static JMenu getFavMenu() {
- return favMenu;
- }
-
- /**
- * @return the predefTitle
- */
- public static String getPredefTitle() {
- return predefTitle;
- }
-
- /**
- * @return the filedialog
- */
- public DialogForFile getFiledialog() {
- return filedialog;
- }
-
- /**
- * @return the identifierApplication
- */
- public Application getIdentifierApplication() {
- return identifierApplication;
- }
-
- /**
- * @return the navBarAnimated
- */
- public static boolean isNavBarAnimated() {
- return navBarAnimated;
- }
-
- /**
- * @return the tabPaneScrolled
- */
- public static boolean isTabPaneScrolled() {
- return tabPaneScrolled;
- }
-
- /**
- * @return the staterrorlabel
- */
- public static JLabel getStaterrorlabel() {
- return staterrorlabel;
- }
-
- /**
- * @return the currentList
- */
- public static MPList getCurrentList() {
- return currentList;
- }
-
- /**
- * @return the pluginLoader
- */
- public YabsPluginLoader getPluginLoader() {
- return pluginLoader;
- }
-
- /**
- * @param c
- * @return the clisttab
- */
- public static synchronized ContactsList getClisttab(Context c) {
- if (c.equals(Context.getCustomer())) {
- if (clisttabc == null) {
- clisttabc = new ContactsList(c);
- }
- return clisttabc;
- } else if (c.equals(Context.getSupplier())) {
- if (clisttabs == null) {
- clisttabs = new ContactsList(c);
- }
- return clisttabs;
- } else if (c.equals(Context.getManufacturer())) {
- if (clisttabm == null) {
- clisttabm = new ContactsList(c);
- }
- return clisttabm;
- } else {
- return new ContactsList();
- }
- }
-
- /**
- * @return the plisttab
- */
- public static ProductList getPlisttab() {
- return plisttab;
- }
-
- public static void setPredefTitle(String string) {
- predefTitle = string;
- }
-
- /**
- * Sets the max value for the progressbar
- *
- * @param max
- */
- public synchronized void setProgressMaximumValue(int max) {
- getProgressbar().setMaximum(max);
- }
-
- /**
- * Sets the current value for the progressbar
- *
- * @param val
- */
- public synchronized void setProgressValue(int val) {
- getProgressbar().setValue(val);
- }
-
- /**
- * Reset the progress bar
- */
- public synchronized void setProgressReset() {
- getProgressbar().setValue(0);
- getProgressbar().setIndeterminate(false);
- }
-
- /**
- * Sets the indeterminate property of the progress bar.
- *
- * @param b
- */
- public synchronized void setProgressRunning(boolean b) {
- getProgressbar().setIndeterminate(b);
- }
-
- /**
- *
- * @return The currently logged in user
- * @deprecated Use User.getCurrentUser instead
- */
- @Deprecated
- public static User getUser() {
- return mpv5.db.objects.User.getCurrentUser();
- }
-
- /**
- * Sets the cursor to waiting state if true
- *
- * @param truee
- */
- public void setWaiting(boolean truee) {
- if (Main.INSTANTIATED && getIdentifierFrame() != null) {
- if (truee) {
- getIdentifierFrame().setCursor(new Cursor(Cursor.WAIT_CURSOR));
- } else {
- getIdentifierFrame().setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
- }
- }
- }
-
- /**
- * Returns the curently selected tab or null if this is not a
- * {@link DataPanel}
- *
- * @return
- */
- public DataPanel getCurrentTab() {
- if (getTabPane().getSelectedComponent() instanceof DataPanel) {
- return (DataPanel) getTabPane().getSelectedComponent();
- } else if (getTabPane().getSelectedComponent() instanceof JScrollPane) {
- try {
- return (DataPanel) ((JScrollPane) getTabPane().getSelectedComponent()).getComponent(0);
- } catch (ClassCastException e) {
- try {
- return (DataPanel) ((JViewport) ((JScrollPane) getTabPane().getSelectedComponent()).getComponent(0)).getComponent(0);
- } catch (Exception ek) {
- return null;
- }
- }
- } else {
- return null;
- }
- }
-
- /**
- * Returns the tab at the specified position, or NULL if the tab is not
- * existing OR not a {@link DataPanel}
- *
- * @param position
- * @return
- */
- public DataPanel getTabAt(int position) {
- if (getTabPane().getComponent(position) instanceof DataPanel) {
- return (DataPanel) getTabPane().getComponent(position);
- } else if (getTabPane().getComponent(position) instanceof JScrollPane) {
- try {
- return (DataPanel) ((JScrollPane) getTabPane().getComponent(position)).getComponent(0);
- } catch (ClassCastException e) {
- try {
- return (DataPanel) ((JViewport) ((JScrollPane) getTabPane().getComponent(position)).getComponent(0)).getComponent(0);
- } catch (Exception et) {
- return null;
- }
- }
- } else {
- return null;
- }
- }
-
- public final void reloadFavorites() {
- Favourite[] favs = Favourite.getUserFavourites();
- for (int i = 0; i < favs.length; i++) {
- Favourite fav = favs[i];
- try {
- getFavMenu().add(new FavouritesMenuItem(Favourite.getObject(fav.getFavContext(), fav.__getItemsids())));
- } catch (NodataFoundException ex) {
- // Log.Debug(this, ex.getMessage());
- }
- }
- }
-
- /**
- * Add something to the clipboard menu
- *
- * @param obj
- */
- public void addToClipBoard(DatabaseObject obj) {
- getClipboardMenu().add(new ClipboardMenuItem(obj));
- getCurrentList().add(obj);
- setClipBoardVisible(true);
- }
-
- public MPView(SingleFrameApplication app) {
- super(app);
-
- MPView.identifierApplication = app;
-
- initComponents();
-
- try {
- Image icon = Toolkit.getDefaultToolkit().getImage(this.getFrame().getClass().getResource(Constants.ICON));
- this.getFrame().setIconImage(icon);
- this.getFrame().setTitle(Constants.TITLE);
- } catch (Exception e) {
- Log.Debug(e);
- }
-
- tabPane = new CloseableTabbedPane(this);
- identifierFrame = this.getFrame();
- Popup.identifier = identifierFrame;
- progressbar = this.progressBar;
- progressbar.setMinimum(0);
- messagelabel = statusMessageLabel;
- staterrorlabel = errorlabel;
- history = xhistory;
- history.setRenderer(new ComboBoxRendererForTooltip());
- if (tabPaneScrolled) {
- tabpanePanel.add(new JScrollPane(getTabPane()), BorderLayout.CENTER);
- jMenuItem25.setIcon(MPIcon.ICON_ENABLED);
- } else {
- tabpanePanel.add(tabPane, BorderLayout.CENTER);
- }
- favMenu = favouritesMenu;
- reloadFavorites();
- identifierView = this;
- filedialog = new DialogForFile(DialogForFile.FILES_ONLY);
- jMenuItem24.setEnabled(!LocalSettings.getBooleanProperty(LocalSettings.OFFICE_REMOTE));
-
- nav_outlookbar.setAnimated(navBarAnimated);
- getFrame().addComponentListener(new ComponentAdapter() {
- @Override
- public void componentResized(ComponentEvent event) {
- setNaviPanelSize();
- }
- });
-
- if (predefTitle != null) {
- identifierFrame.setTitle(identifierFrame.getTitle() + predefTitle);
- }
-
- QueryHandler.setWaitCursorFor(identifierFrame);
-
- pluginLoader = new YabsPluginLoader();
-
- addTab(new StartPage(), Messages.WELCOME);
- LocalSettings.save();
-
- if (Log.getLoglevel() == Log.LOGLEVEL_DEBUG) {
- // jMenuItem45.setEnabled(true);
- }
-
- identifierFrame.validate();
- loaded = true;
- }
-
- /**
- * Set the state of the main toolbar
- *
- * @param enable
- */
- public void enableToolBar(boolean enable) {
- getMainToolbar().setEnabled(enable);
- }
-
- private void setNaviPanelSize() {
- Runnable runnable = new Runnable() {
- public void run() {
- getNav_outlookbar().setPreferredSize(new Dimension(getNav_outlookbar().getWidth(), getFrame().getHeight() - 200));
- getNav_outlookbar().setMaximumSize(new Dimension(getNav_outlookbar().getWidth(), getFrame().getHeight() - 200));
- getNav_outlookbar().setMinimumSize(new Dimension(getNav_outlookbar().getWidth(), getFrame().getHeight() - 200));
- getNav_outlookbar().setSize(new Dimension(getNav_outlookbar().getWidth(), getFrame().getHeight() - 200));
- getNaviPanel().revalidate();
- getNaviPanel().repaint();
- }
- };
-
- SwingUtilities.invokeLater(runnable);
- }
-
- /**
- * Add a tab to the main tab pane, automatically determines the needed View
- *
- * @param item
- * @param tabTitle
- * @return The added tab
- */
- public DataPanel addTab(final DatabaseObject item, Object tabTitle) {
- setWaiting(true);
- boolean found = false;
- boolean proceed = true;
- if (mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "avoidmultipleviews")) {
- Log.Debug(this, "Looking for an existing view for: " + item);
- int count = getTabPane().getTabCount();
- for (int i = 0; i < count; i++) {
- if (getTabAt(i) != null) {
- DataPanel panel = getTabAt(i);
- if (item.equals(panel.getDataOwner())) {
- getTabPane().setSelectedIndex(i);
- if (tabTitle == null) {
- getTabPane().setTitleAt(i, item.__getCname());
- } else {
- getTabPane().setTitleAt(i, tabTitle + ": " + item.__getCname());
- }
- proceed = false;
- break;
- }
- }
- }
- }
-
- if (proceed) {
- if (item.getView() != null && mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "norecycletabs")) {
- if (tabTitle == null) {
- final DataPanel p = ((DataPanel) item.getView());
- addTab((JComponent) p, item.__getCname());
- Runnable runnable = new Runnable() {
- public void run() {
- p.setDataOwner(item, true);
- }
- };
- SwingUtilities.invokeLater(runnable);
- } else {
- final DataPanel p = ((DataPanel) item.getView());
- addTab((JComponent) p, tabTitle + ": " + item.__getCname());
- Runnable runnable = new Runnable() {
- public void run() {
- p.setDataOwner(item, true);
- }
- };
- SwingUtilities.invokeLater(runnable);
- }
- getCurrentTab().setDataOwner(item, true);
- } else if (item.getView() != null) {
- int count = getTabPane().getTabCount();
- for (int i = 0; i < count; i++) {
- if (getTabAt(i) != null) {
- DataPanel panel = getTabAt(i);
- if (!panel.getDataOwner().isExisting()
- && panel.getDataOwner().getContext().equals(item.getContext())
- && panel.getClass() == item.getView().getClass()) {
- // if (!panel.getDataOwner().isExisting() && panel.getDataOwner().getContext().equals(item.getContext())) {
- getTabPane().setSelectedIndex(i);
- panel.setDataOwner(item, true);
- if (tabTitle == null) {
- getTabPane().setTitleAt(i, item.__getCname());
- } else {
- getTabPane().setTitleAt(i, tabTitle + ": " + item.__getCname());
- }
- found = true;
- break;
- }
- }
- }
- if (!found) {
- try {
- final DataPanel p = (DataPanel) item.getView();
-
- if (tabTitle == null) {
- addTab((JComponent) p, item.__getCname());
- } else {
- addTab((JComponent) p, tabTitle + ": " + item.__getCname());
- }
- Runnable runnable = new Runnable() {
- public void run() {
- p.setDataOwner(item, true);
- }
- };
- SwingUtilities.invokeLater(runnable);
- } catch (ClassCastException e) {
- if (tabTitle == null) {
- addTab(item.getView(), item.__getCname());
- } else {
- addTab(item.getView(), tabTitle + ": " + item.__getCname());
- }
- }
- }
- }
- }
-
- setPointInFlow(addToFlow(item));
- setWaiting(false);
- return getCurrentTab();
- }
-
- /**
- * Add a tab to the main tab pane, automatically determines the needed View
- *
- * @param item
- * @return
- */
- public DataPanel addTab(DatabaseObject item) {
- return addTab(item, null);
- }
-
- /**
- * Shows a tab or adds it if needed
- *
- * @param instanceOf
- * @param label
- */
- public void addOrShowTab(JComponent instanceOf, Object label) {
- Component[] tabs = getTabPane().getComponents();
- boolean found = false;
- JScrollPane scroll = null;
- for (int i = 0; i < tabs.length; i++) {
- JComponent component = (JComponent) tabs[i];
- if (component instanceof JScrollPane) {
- scroll = (JScrollPane) component;
- component = (JComponent) ((JScrollPane) component).getComponent(0);
- }
- try {
- if (component.getComponent(0).equals(instanceOf)) {
- if (scroll == null) {
- getTabPane().setSelectedComponent(instanceOf);
- } else {
- getTabPane().setSelectedComponent(scroll);
- }
- found = true;
- }
- } catch (Exception e) {
- Log.Debug(this, e.getMessage());
- }
- }
-
- if (!found) {
- addTab(instanceOf, label.toString());
- }
- }
-
- /**
- * Add a tab to the main tab pane, with new JScrollPane
- *
- * @param tab
- * @param name
- * @return The now selected index
- */
- public int addTab(JComponent tab, String name) {
- JScrollPane spane = new JScrollPane(tab);
- getTabPane().addTab(name, spane);
- getTabPane().setSelectedComponent(spane);
- return getTabPane().getSelectedIndex();
- }
-
- private void addTab(JComponent tab, Messages name) {
- addTab(tab, name.toString());
- }
-
- private void importXML() {
- Wizard w = new Wizard(false);
- w.addPanel(new wizard_XMLImport_1(w));
- w.addPanel(new wizard_XMLImport_2(w));
- w.showWiz();
- }
-
- /**
- * This method is called from within the constructor to initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is always
- * regenerated by the Form Editor.
- */
- @SuppressWarnings("unchecked")
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- mainPanel = new javax.swing.JPanel();
- naviPanel = new javax.swing.JPanel();
- nav_outlookbar = new com.l2fprod.common.swing.JOutlookBar();
- parent_nav_contacts = new javax.swing.JPanel();
- nav_contacts = new javax.swing.JPanel();
- jButton5 = new javax.swing.JButton();
- jButton1 = new javax.swing.JButton();
- jButton18 = new javax.swing.JButton();
- parent_nav_accounting = new javax.swing.JPanel();
- nav_accounting = new javax.swing.JPanel();
- jButton8 = new javax.swing.JButton();
- jButton11 = new javax.swing.JButton();
- jButton21 = new javax.swing.JButton();
- jButton10 = new javax.swing.JButton();
- jButton15 = new javax.swing.JButton();
- jButton16 = new javax.swing.JButton();
- jButton17 = new javax.swing.JButton();
- parent_nav_products = new javax.swing.JPanel();
- nav_products = new javax.swing.JPanel();
- jButton13 = new javax.swing.JButton();
- jButton14 = new javax.swing.JButton();
- jButton19 = new javax.swing.JButton();
- jButton20 = new javax.swing.JButton();
- jButton12 = new javax.swing.JButton();
- jButton22 = new javax.swing.JButton();
- parent_nav_extras = new javax.swing.JPanel();
- nav_extras = new javax.swing.JPanel();
- jButton6 = new javax.swing.JButton();
- jButton7 = new javax.swing.JButton();
- jButton9 = new javax.swing.JButton();
- menuBar = new javax.swing.JMenuBar();
- javax.swing.JMenu fileMenu = new javax.swing.JMenu();
- jMenu14 = new javax.swing.JMenu();
- jMenuItem33 = new javax.swing.JMenuItem();
- jMenuItem34 = new javax.swing.JMenuItem();
- jMenuItem13 = new javax.swing.JMenuItem();
- jMenuItem14 = new javax.swing.JMenuItem();
- jSeparator3 = new javax.swing.JSeparator();
- jMenuItem6 = new javax.swing.JMenuItem();
- jMenu4 = new javax.swing.JMenu();
- jMenu5 = new javax.swing.JMenu();
- jMenuItem8 = new javax.swing.JMenuItem();
- jMenuItem22 = new javax.swing.JMenuItem();
- jMenu10 = new javax.swing.JMenu();
- jMenuItem20 = new javax.swing.JMenuItem();
- jMenuItem21 = new javax.swing.JMenuItem();
- jMenu11 = new javax.swing.JMenu();
- jMenuItem26 = new javax.swing.JMenuItem();
- jMenu13 = new javax.swing.JMenu();
- jMenuItem32 = new javax.swing.JMenuItem();
- jMenuItem41 = new javax.swing.JMenuItem();
- jSeparator8 = new javax.swing.JPopupMenu.Separator();
- jMenu8 = new javax.swing.JMenu();
- jMenuItem11 = new javax.swing.JMenuItem();
- jMenuItem38 = new javax.swing.JMenuItem();
- jMenuItem40 = new javax.swing.JMenuItem();
- jMenu12 = new javax.swing.JMenu();
- jMenuItem28 = new javax.swing.JMenuItem();
- jMenuItem29 = new javax.swing.JMenuItem();
- jSeparator1 = new javax.swing.JSeparator();
- jMenu3 = new javax.swing.JMenu();
- jMenuItem18 = new javax.swing.JMenuItem();
- jMenuItem37 = new javax.swing.JMenuItem();
- jMenuItem46 = new javax.swing.JMenuItem();
- jSeparator9 = new javax.swing.JPopupMenu.Separator();
- jMenuItem12 = new javax.swing.JMenuItem();
- editMenu = new javax.swing.JMenu();
- jMenuItem15 = new javax.swing.JMenuItem();
- jSeparator4 = new javax.swing.JSeparator();
- jMenuItem9 = new javax.swing.JMenuItem();
- jMenuItem16 = new javax.swing.JMenuItem();
- jSeparator5 = new javax.swing.JSeparator();
- jMenuItem17 = new javax.swing.JMenuItem();
- viewMenu = new javax.swing.JMenu();
- jMenu2 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenuItem2 = new javax.swing.JMenuItem();
- jMenuItem39 = new javax.swing.JMenuItem();
- jMenuItem25 = new javax.swing.JMenuItem();
- jMenuItem19 = new javax.swing.JMenuItem();
- jMenuItem4 = new javax.swing.JMenuItem();
- jMenu15 = new javax.swing.JMenu();
- jMenuItem35 = new javax.swing.JMenuItem();
- jMenuItem36 = new javax.swing.JMenuItem();
- toolsMenu = new javax.swing.JMenu();
- jMenuItem3 = new javax.swing.JMenuItem();
- jMenuItem23 = new javax.swing.JMenuItem();
- jMenuItem31 = new javax.swing.JMenuItem();
- jMenuItem24 = new javax.swing.JMenuItem();
- jMenuItem47 = new javax.swing.JMenuItem();
- jSeparator6 = new javax.swing.JSeparator();
- jMenuItem43 = new javax.swing.JMenuItem();
- jMenuItem45 = new javax.swing.JMenuItem();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem42 = new javax.swing.JMenuItem();
- jMenuItem44 = new javax.swing.JMenuItem();
- favouritesMenu = new javax.swing.JMenu();
- clipboardMenu = new javax.swing.JMenu();
- jMenu6 = new javax.swing.JMenu();
- jMenuItem7 = new javax.swing.JMenuItem();
- jMenuItem5 = new javax.swing.JMenuItem();
- helpmenu = new javax.swing.JMenu();
- jMenuItem10 = new javax.swing.JMenuItem();
- jMenuItem27 = new javax.swing.JMenuItem();
- jMenuItem30 = new javax.swing.JMenuItem();
- statusPanel = new javax.swing.JPanel();
- statusMessageLabel = new FadeOnChangeLabel();
- pluginIcons = new javax.swing.JPanel();
- separator = new javax.swing.JPanel();
- progressBar = new javax.swing.JProgressBar();
- separator1 = new javax.swing.JPanel();
- xhistory = new javax.swing.JComboBox();
- serverlabel = new javax.swing.JPanel();
- errorlabel = new javax.swing.JLabel();
- officelabel = new javax.swing.JPanel();
- mainToolbar = new javax.swing.JToolBar();
- closeButton1 = new javax.swing.JButton();
- closeButton2 = new javax.swing.JButton();
- jSeparator7 = new javax.swing.JToolBar.Separator();
- closeButton = new javax.swing.JButton();
- lockButton = new javax.swing.JButton();
- jSeparator2 = new javax.swing.JToolBar.Separator();
- calculatorButton = new javax.swing.JButton();
- jButton2 = new javax.swing.JButton();
-
- mainPanel.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
- mainPanel.setName("mainPanel"); // NOI18N
-
- tabpanePanel.setBackground(new java.awt.Color(255, 255, 255));
- tabpanePanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
- tabpanePanel.setName("tabpanePanel"); // NOI18N
- tabpanePanel.setLayout(new java.awt.BorderLayout());
-
- naviPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
- naviPanel.setAutoscrolls(true);
- naviPanel.setFocusCycleRoot(true);
- naviPanel.setName("naviPanel"); // NOI18N
-
- nav_outlookbar.setAnimated(false);
- nav_outlookbar.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
- nav_outlookbar.setName("nav_outlookbar"); // NOI18N
-
- parent_nav_contacts.setBackground(new java.awt.Color(153, 153, 153));
- parent_nav_contacts.setName("parent_nav_contacts"); // NOI18N
- parent_nav_contacts.setPreferredSize(new java.awt.Dimension(110, 400));
- parent_nav_contacts.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 0, 0));
-
- nav_contacts.setBackground(new java.awt.Color(153, 153, 153));
- nav_contacts.setName("nav_contacts"); // NOI18N
- nav_contacts.setLayout(new java.awt.GridLayout(0, 1, 2, 5));
-
- jButton5.setFont(jButton5.getFont().deriveFont(jButton5.getFont().getSize()-1f));
- jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/agt_family.png"))); // NOI18N
- java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle(); // NOI18N
- jButton5.setText(bundle.getString("MPView.jButton5.text_1")); // NOI18N
- jButton5.setToolTipText(bundle.getString("MPView.jButton5.toolTipText_1")); // NOI18N
- jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jButton5.setMaximumSize(new java.awt.Dimension(250, 60));
- jButton5.setMinimumSize(new java.awt.Dimension(80, 50));
- jButton5.setName("jButton5"); // NOI18N
- jButton5.setPreferredSize(new java.awt.Dimension(110, 57));
- jButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- jButton5.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton5ActionPerformed(evt);
- }
- });
- nav_contacts.add(jButton5);
-
- jButton1.setFont(jButton1.getFont().deriveFont(jButton1.getFont().getSize()-1f));
- jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/edit_group.png"))); // NOI18N
- jButton1.setText(bundle.getString("MPView.jButton1.text_1")); // NOI18N
- jButton1.setToolTipText(bundle.getString("MPView.jButton1.toolTipText_1")); // NOI18N
- jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jButton1.setMaximumSize(new java.awt.Dimension(250, 60));
- jButton1.setMinimumSize(new java.awt.Dimension(80, 50));
- jButton1.setName("jButton1"); // NOI18N
- jButton1.setPreferredSize(new java.awt.Dimension(110, 57));
- jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
- nav_contacts.add(jButton1);
-
- jButton18.setFont(jButton18.getFont().deriveFont(jButton18.getFont().getSize()-1f));
- jButton18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/edit_group.png"))); // NOI18N
- jButton18.setText(bundle.getString("MPView.jButton18.text_1")); // NOI18N
- jButton18.setToolTipText(bundle.getString("MPView.jButton18.toolTipText_1")); // NOI18N
- jButton18.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jButton18.setMaximumSize(new java.awt.Dimension(250, 60));
- jButton18.setMinimumSize(new java.awt.Dimension(80, 50));
- jButton18.setName("jButton18"); // NOI18N
- jButton18.setPreferredSize(new java.awt.Dimension(110, 57));
- jButton18.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- jButton18.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton18ActionPerformed(evt);
- }
- });
- nav_contacts.add(jButton18);
-
- parent_nav_contacts.add(nav_contacts);
-
- nav_outlookbar.addTab(bundle.getString("MPView.parent_nav_contacts.TabConstraints.tabTitle_1"), parent_nav_contacts); // NOI18N
-
- parent_nav_accounting.setBackground(new java.awt.Color(153, 153, 153));
- parent_nav_accounting.setName("parent_nav_accounting"); // NOI18N
- parent_nav_accounting.setPreferredSize(new java.awt.Dimension(110, 400));
- parent_nav_accounting.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 0, 0));
-
- nav_accounting.setBackground(new java.awt.Color(153, 153, 153));
- nav_accounting.setName("nav_accounting"); // NOI18N
- nav_accounting.setLayout(new java.awt.GridLayout(0, 1, 2, 5));
-
- jButton8.setFont(jButton8.getFont().deriveFont(jButton8.getFont().getSize()-1f));
- jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/folder_blue.png"))); // NOI18N
- jButton8.setText(bundle.getString("MPView.jButton8.text")); // NOI18N
- jButton8.setToolTipText(bundle.getString("MPView.jButton8.toolTipText")); // NOI18N
- jButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jButton8.setMaximumSize(new java.awt.Dimension(250, 60));
- jButton8.setMinimumSize(new java.awt.Dimension(80, 50));
- jButton8.setName("jButton8"); // NOI18N
- jButton8.setPreferredSize(new java.awt.Dimension(110, 57));
- jButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- jButton8.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton8ActionPerformed(evt);
- }
- });
- nav_accounting.add(jButton8);
-
- jButton11.setFont(jButton11.getFont().deriveFont(jButton11.getFont().getSize()-1f));
- jButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/folder_green.png"))); // NOI18N
- jButton11.setText(bundle.getString("MPView.jButton11.text")); // NOI18N
- jButton11.setToolTipText(bundle.getString("MPView.jButton11.toolTipText")); // NOI18N
- jButton11.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jButton11.setMaximumSize(new java.awt.Dimension(250, 60));
- jButton11.setMinimumSize(new java.awt.Dimension(80, 50));
- jButton11.setName("jButton11"); // NOI18N
- jButton11.setPreferredSize(new java.awt.Dimension(110, 57));
- jButton11.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- jButton11.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton11ActionPerformed(evt);
- }
- });
- nav_accounting.add(jButton11);
-
- jButton21.setFont(jButton21.getFont().deriveFont(jButton21.getFont().getSize()-1f));
- jButton21.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/folder_documents.png"))); // NOI18N
- jButton21.setText(bundle.getString("MPView.jButton21.text")); // NOI18N
- jButton21.setToolTipText(bundle.getString("MPView.jButton21.toolTipText")); // NOI18N
- jButton21.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jButton21.setMaximumSize(new java.awt.Dimension(250, 60));
- jButton21.setMinimumSize(new java.awt.Dimension(80, 50));
- jButton21.setName("jButton21"); // NOI18N
- jButton21.setPreferredSize(new java.awt.Dimension(110, 57));
- jButton21.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- jButton21.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton21ActionPerformed(evt);
- }
- });
- nav_accounting.add(jButton21);
-
- jButton10.setFont(jButton10.getFont().deriveFont(jButton10.getFont().getSize()-1f));
- jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/folder_grey.png"))); // NOI18N
- jButton10.setText(bundle.getString("MPView.jButton10.text")); // NOI18N
- jButton10.setToolTipText(bundle.getString("MPView.jButton10.toolTipText")); // NOI18N
- jButton10.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jButton10.setMaximumSize(new java.awt.Dimension(250, 60));
- jButton10.setMinimumSize(new java.awt.Dimension(80, 50));
- jButton10.setName("jButton10"); // NOI18N
- jButton10.setPreferredSize(new java.awt.Dimension(110, 57));
- jButton10.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- jButton10.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton10ActionPerformed(evt);
- }
- });
- nav_accounting.add(jButton10);
-
- jButton15.setFont(jButton15.getFont().deriveFont(jButton15.getFont().getSize()-1f));
- jButton15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/folder_red.png"))); // NOI18N
- jButton15.setText(bundle.getString("MPView.jButton15.text")); // NOI18N
- jButton15.setToolTipText(bundle.getString("MPView.jButton15.toolTipText")); // NOI18N
- jButton15.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jButton15.setMaximumSize(new java.awt.Dimension(250, 60));
- jButton15.setMinimumSize(new java.awt.Dimension(80, 50));
- jButton15.setName("jButton15"); // NOI18N
- jButton15.setPreferredSize(new java.awt.Dimension(110, 57));
- jButton15.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- jButton15.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton15ActionPerformed(evt);
- }
- });
- nav_accounting.add(jButton15);
-
- jButton16.setFont(jButton16.getFont().deriveFont(jButton16.getFont().getSize()-1f));
- jButton16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/folder_yellow.png"))); // NOI18N
- jButton16.setText(bundle.getString("MPView.jButton16.text")); // NOI18N
- jButton16.setToolTipText(bundle.getString("MPView.jButton16.toolTipText")); // NOI18N
- jButton16.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jButton16.setMaximumSize(new java.awt.Dimension(250, 60));
- jButton16.setMinimumSize(new java.awt.Dimension(80, 50));
- jButton16.setName("jButton16"); // NOI18N
- jButton16.setPreferredSize(new java.awt.Dimension(110, 57));
- jButton16.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- jButton16.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton16ActionPerformed(evt);
- }
- });
- nav_accounting.add(jButton16);
-
- jButton17.setFont(jButton17.getFont().deriveFont(jButton17.getFont().getSize()-1f));
- jButton17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/reload.png"))); // NOI18N
- jButton17.setText(bundle.getString("MPView.jButton17.text")); // NOI18N
- jButton17.setToolTipText(bundle.getString("MPView.jButton17.toolTipText")); // NOI18N
- jButton17.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jButton17.setMaximumSize(new java.awt.Dimension(250, 60));
- jButton17.setMinimumSize(new java.awt.Dimension(80, 50));
- jButton17.setName("jButton17"); // NOI18N
- jButton17.setPreferredSize(new java.awt.Dimension(110, 57));
- jButton17.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- jButton17.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton17ActionPerformed(evt);
- }
- });
- nav_accounting.add(jButton17);
-
- parent_nav_accounting.add(nav_accounting);
-
- nav_outlookbar.addTab(bundle.getString("MPView.parent_nav_accounting.TabConstraints.tabTitle_1"), parent_nav_accounting); // NOI18N
-
- parent_nav_products.setBackground(new java.awt.Color(153, 153, 153));
- parent_nav_products.setName("parent_nav_products"); // NOI18N
- parent_nav_products.setPreferredSize(new java.awt.Dimension(110, 400));
- parent_nav_products.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 0, 0));
-
- nav_products.setBackground(new java.awt.Color(153, 153, 153));
- nav_products.setName("nav_products"); // NOI18N
- nav_products.setLayout(new java.awt.GridLayout(0, 1, 2, 5));
-
- jButton13.setFont(jButton13.getFont().deriveFont(jButton13.getFont().getSize()-1f));
- jButton13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/tux.png"))); // NOI18N
- jButton13.setText(bundle.getString("MPView.jButton13.text")); // NOI18N
- jButton13.setToolTipText(bundle.getString("MPView.jButton13.toolTipText")); // NOI18N
- jButton13.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jButton13.setMaximumSize(new java.awt.Dimension(250, 60));
- jButton13.setMinimumSize(new java.awt.Dimension(80, 50));
- jButton13.setName("jButton13"); // NOI18N
- jButton13.setPreferredSize(new java.awt.Dimension(110, 57));
- jButton13.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- jButton13.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton13ActionPerformed(evt);
- }
- });
- nav_products.add(jButton13);
-
- jButton14.setFont(jButton14.getFont().deriveFont(jButton14.getFont().getSize()-1f));
- jButton14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/playlist.png"))); // NOI18N
- jButton14.setText(bundle.getString("MPView.jButton14.text")); // NOI18N
- jButton14.setToolTipText(bundle.getString("MPView.jButton14.toolTipText")); // NOI18N
- jButton14.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jButton14.setMaximumSize(new java.awt.Dimension(250, 60));
- jButton14.setMinimumSize(new java.awt.Dimension(80, 50));
- jButton14.setName("jButton14"); // NOI18N
- jButton14.setPreferredSize(new java.awt.Dimension(110, 57));
- jButton14.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- jButton14.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton14ActionPerformed(evt);
- }
- });
- nav_products.add(jButton14);
-
- jButton19.setFont(jButton19.getFont().deriveFont(jButton19.getFont().getSize()-1f));
- jButton19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mpv5/resources/images/32/kghostview.png"))); // NOI18N
- jButton19.setText(bundle.getString("MPView.jButton19.text")); // NOI18N
- jButton19.setToolTipText(bundle.getString("MPView.jButton19.toolTipText")); // NOI18N
- jButton19.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
- jButton19.setMaximumSize(new java.awt.Dimension(250, 60));
- jButton19.setMinimumSize(new java.awt.Dimension(80, 50));
- jButton19.setName("jButton19"); // NOI18N
- jButton19.setPreferredSize(new java.awt.Dimension(110, 57));
- jButton19.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
- jButton19.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButto…
Large files files are truncated, but you can click here to view the full file