/** * Initializes the panel. * * @param hgap the horizontal gap in pixel * @param vgap the vertical gap in pixel * @param useCheckBoxes whether to use checkboxes */ public ParameterPanel(int hgap, int vgap, boolean useCheckBoxes) { super(); m_GapHorizontal = hgap; m_GapVertical = vgap; m_UseCheckBoxes = useCheckBoxes; update(); }
/** * Removes all parameters. */ public void clearParameters() { m_CheckBoxes.clear(); m_Labels.clear(); m_Parameters.clear(); update(); }
/** * Sets the preferred dimension for JSpinner and derived classes. * * @param value the preferred dimensions (do not use 0 for height!) */ public void setPreferredDimensionJSpinner(Dimension value) { m_PreferredDimensionJSpinner = (Dimension) value.clone(); update(); }
/** * Removes the parameter at the specified location. * * @param index the row index */ public void removeParameter(int index) { Component comp; m_Labels.remove(index); comp = m_Parameters.remove(index); removeChangeListenerFrom(comp); update(); }
/** * Initializes the members. */ @Override protected void initGUI() { super.initGUI(); update(); }
/** * Sets the minimum dimension for JComboBox and derived classes. * * @param value the minimum dimensions (do not use 0 for height!) */ public void setMinDimensionJComboBox(Dimension value) { m_MinDimensionJComboBox = (Dimension) value.clone(); update(); }