/** * Initializes the panel. * * @param layout the layout to use */ public BasePanel(LayoutManager layout) { super(layout); initialize(); initGUI(); finishInit(); }
/** * Sets the enabled state of the panel. * * @param enabled if true then the sub-elements will be enabled */ @Override public void setEnabled(boolean enabled) { super.setEnabled(enabled); m_ButtonSelection.setEnabled(enabled); m_TextSelection.setEnabled(enabled); }
/** * Sets the tool tip, displayed when hovering with the mouse. * * @param text the text, null to turn off */ @Override public void setToolTipText(String text) { super.setToolTipText(text); m_TextSelection.setToolTipText(text); }
/** * Initializes the members. */ @Override protected void initGUI() { super.initGUI(); update(); }
/** * Initializes the members. */ @Override protected void initialize() { super.initialize(); m_WordWrap = false; }
/** * finishes the initialization. */ @Override protected void finishInit() { super.finishInit(); setButtonPanelVisible(false); }
/** * For initializing the GUI. */ @Override protected void initGUI() { super.initGUI(); setLayout(new BorderLayout()); m_PanelWrapper = new JPanel(new BorderLayout()); m_ScrollPane = new BaseScrollPane(m_PanelWrapper); add(m_ScrollPane, BorderLayout.CENTER); m_TextPane = new BaseTextPane(); m_PanelWrapper.add(m_TextPane, BorderLayout.CENTER); }
/** * Initializes the members. */ @Override protected void initialize() { super.initialize(); m_Self = this; m_ChangeListeners = new HashSet<>(); m_Editable = true; m_InlineEditingEnabled = false; }
/** * Finishes up the initialization. */ @Override protected void finishInit() { super.finishInit(); loadSetup(); }
/** * For initializing the GUI. */ @Override protected void initGUI() { JPanel panel; super.initGUI(); setLayout(new BorderLayout()); m_PanelProperties = new ParameterPanel(); add(new BaseScrollPane(m_PanelProperties), BorderLayout.CENTER); m_PanelButtons = new JPanel(new BorderLayout()); add(m_PanelButtons, BorderLayout.SOUTH); panel = new JPanel(new FlowLayout(FlowLayout.LEFT)); m_PanelButtons.add(panel, BorderLayout.WEST); m_ButtonLoad = new JButton(GUIHelper.getIcon("open.gif")); m_ButtonLoad.addActionListener((ActionEvent e) -> loadProperties()); panel.add(m_ButtonLoad); m_ButtonSave = new JButton(GUIHelper.getIcon("save.gif")); m_ButtonSave.addActionListener((ActionEvent e) -> saveProperties()); panel.add(m_ButtonSave); }
/** * Initializes the members. */ @Override protected void initialize() { super.initialize(); m_Identifiers = new ArrayList<>(); m_PropertyTypes = new HashMap<>(); m_ActualPropertyTypes = new HashMap<>(); m_Choosers = new HashMap<>(); m_Lists = new HashMap<>(); m_Help = new HashMap<>(); m_Label = new HashMap<>(); m_Component = new HashMap<>(); m_Order = new ArrayList<>(); m_FileChooser = null; }
/** * Sets the enabled state of the panel. * * @param enabled if true then the parameters will be editable */ @Override public void setEnabled(boolean enabled) { int i; for (i = 0; i < m_Parameters.size(); i++) { if (m_UseCheckBoxes) m_CheckBoxes.get(i).setEnabled(enabled); m_Parameters.get(i).setEnabled(enabled); } super.setEnabled(enabled); }
BaseScrollPane scrollPane; super.initGUI();