/** * Returns the component at the specified location. * * @param index the index of the specified location * @return the component at the position */ public Component getProperty(int index) { return m_PanelProperties.getParameter(index); }
/** * Returns the component associated with the identifier. * * @param identifier the identifier of the property to return * @return the associated component, null if none found */ public Component getProperty(String identifier) { int index; index = m_Identifiers.indexOf(identifier); if (index == -1) return null; else return m_PanelProperties.getParameter(index); }
/** * Sets the tiptext to display. * * @param index the index of the component * @param text the tiptext to use, null to turn off * @param check whether to set the tiptext for the checkbox * @param label whether to set the tiptext for the label * @param comp whether to set the tiptext for the component (must be {@link JComponent}) */ public void setToolTipText(int index, String text, boolean check, boolean label, boolean comp) { if (m_UseCheckBoxes && check) getCheckBox(index).setToolTipText(text); if (label) getLabel(index).setToolTipText(text); if (comp && (getParameter(index) instanceof JComponent)) ((JComponent) getParameter(index)).setToolTipText(text); }