/** * Inserts the label and component as new row at the specified row. * * @param index the row index to insert the label/editfield at, -1 will * add the component at the end * @param label the label to add, the mnemonic to use is preceded by "_" * @param comp the component to add * @return the index of the parameter */ public int addParameter(int index, String label, Component comp) { return addParameter(index, false, label, comp); }
/** * Adds the chooser panel at the end. Cannot be used if checkboxes used. * * @param chooser the chooser panel to add * @return the index of the parameter * @see #useCheckBoxes() */ public int addParameter(AbstractChooserPanel chooser) { return addParameter(false, chooser); }
/** * Inserts the chooser panel as new row at the specified row. * * @param chooser the chooser panel to insert * @param index the row index to insert the label/editfield at, -1 will * add the chooser at the end */ public void addParameter(int index, AbstractChooserPanel chooser) { addParameter(index, false, chooser); }
/** * Adds the chooser panel at the end. Cannot be used if checkboxes used. * * @param chooser the chooser panel to add * @return the index of the parameter * @see #useCheckBoxes() */ public int addParameter(boolean checked, AbstractChooserPanel chooser) { return addParameter(-1, false, chooser); }
/** * Adds the label and component as new row at the end. * * @param label the label to add, the mnemonic to use is preceded by "_" * @param comp the component to add * @return the index of the parameter */ public int addParameter(String label, Component comp) { return addParameter(false, label, comp); }
/** * Adds the label and component as new row at the end. * * @param checked whether the checkbox is checked * @param label the label to add, the mnemonic to use is preceded by "_" * @param comp the component to add * @return the index of the parameter */ public int addParameter(boolean checked, String label, Component comp) { return addParameter(-1, checked, label, comp); }
/** * Adds a property. * * @param identifier the unique identifier of the property * @param label the label to add, the mnemonic to use is preceded by "_" * @param comp the component to add * @throws IllegalArgumentException if the identifier already exists */ public void addProperty(String identifier, String label, Component comp) { if (m_Identifiers.contains(identifier)) throw new IllegalArgumentException("Identifier '" + identifier + "' already present!"); m_Identifiers.add(identifier); m_PanelProperties.addParameter(label, comp); }
/** * Adds the chooser panel at the end. * * @param identifier the unique identifier of the property * @param label the label to add, the mnemonic to use is preceded by "_" * @param chooser the chooser panel to add * @throws IllegalArgumentException if the identifier already exists */ public void addProperty(String identifier, String label, AbstractChooserPanel chooser) { if (m_Identifiers.contains(identifier)) throw new IllegalArgumentException("Identifier '" + identifier + "' already present!"); m_Identifiers.add(identifier); m_PanelProperties.addParameter(label, chooser); }