| com.jeta.open.support.SwingComponentSupport
All known Subclasses: com.jeta.open.gui.framework.JETAPanel,
SwingComponentSupport | public interface SwingComponentSupport extends ComponentFinder(Code) | | Interface that defines common methods for working with SwingComponents in a
Container.
author: Jeff Tassin |
enableComponent | public void enableComponent(String commandId, boolean bEnable)(Code) | | Enables/Disables the component associated with the commandid
Parameters: commandId - the id of the command whose button to enable/disable Parameters: bEnable - true/false to enable/disable |
getBoolean | public boolean getBoolean(String compName)(Code) | | Returns the selected state of the AbstractButton that has the given name.
If a component is found with the given name and that component is not an
AbstractButton, then false is returned.
the selected state of the named AbstractButton. |
getButton | public AbstractButton getButton(String compName)(Code) | | Returns the button that is contained in this panel and has the given
name. If the component is not found nor is an AbstractButton, null is
returned.
the named AbstractButton |
getCheckBox | public JCheckBox getCheckBox(String compName)(Code) | | Returns the JCheckBox that is contained in this panel and has the given
name. If the component is not found nor is a JCheckBox, null is returned.
the named JCheckBox |
getComboBox | public JComboBox getComboBox(String compName)(Code) | | Returns the JComboBox that is contained in this panel and has the given
name. If the component is not found nor is a JComboBox, null is returned.
the named JComboBox |
getInteger | public int getInteger(String compName, int defaultValue)(Code) | | Locates the JTextField that has the given component name. The text in the
field is converted to an integer and returned. If the text cannot be
converted to an integer or the component is not a JTextField, the
defaultValue is returned.
Parameters: compName - the JTextField to find. Parameters: defaultValue - the value to return if the component is not a JTextField orthe text in the field is not an integer. the text converted to an integer. |
getLabel | public JLabel getLabel(String compName)(Code) | | Returns the JLabel that is contained in this panel and has the given
name. If the component is not found nor is a JLabel, null is returned.
the named JLabel. |
getList | public JList getList(String compName)(Code) | | Returns the JList that is contained in this panel and has the given name.
If the component is not found nor is a JList, null is returned.
the named JList |
getPanel | public JPanel getPanel(String compName)(Code) | | Returns the JPanel that is contained in this panel and has the given
name. If the component is not found nor is a JPanel, null is returned.
the named JPanel |
getProgressBar | public JProgressBar getProgressBar(String compName)(Code) | | Returns JProgressBar that is contained in this panel and has the given
name. If the component is not found nor is a JProgressBar, null is
returned.
the named JProgressBar. |
getRadioButton | public JRadioButton getRadioButton(String compName)(Code) | | Returns the JRadioButton that is contained in this panel and has the
given name. If the component is not found nor is a JRadioButton, null is
returned.
the named JRadioButton |
getSelectedItem | public Object getSelectedItem(String compName)(Code) | | Returns the selected item from the JList or JComboBox that has the given
name. If a list or combo is not found with the name, null is returned.
the selected item from the named JList or JComboBox. |
getSpinner | public JSpinner getSpinner(String compName)(Code) | | Returns JSpinner that is contained in this panel and has the given name.
If the component is not found nor is a JSpinner, null is returned.
the named JSpinner |
getTabbedPane | public JTabbedPane getTabbedPane(String compName)(Code) | | Returns the JTabbedPane that is contained in this panel and has the given
name. If the component is not found nor is a JTabbedPane, null is
returned.
the named JTabbedPane |
getTable | public JTable getTable(String compName)(Code) | | Returns the JTable that is contained in this panel and has the given
name. If the component is not found nor is a JTable, null is returned.
the named JTable |
getText | public String getText(String compName)(Code) | | Returns the text property from a Component. If a component is not found
with the given name or a component does not have a text property, then
null is returned.
the text property. |
getTextComponent | public JTextComponent getTextComponent(String compName)(Code) | | Returns the JTextComponent that is contained in this panel and has the
given name. If the component is not found nor is a JTextComponent, null
is returned.
the named JTextComponent |
getTextField | public JTextField getTextField(String compName)(Code) | | Returns the JTextField that is contained in this panel and has the given
name. If the component is not found nor is a JTextField, null is
returned.
the named JTextField |
getTree | public JTree getTree(String compName)(Code) | | Returns the JTree that is contained in this panel and has the given name.
If the component is not found nor is a JTree, null is returned.
the named JTree |
isSelected | public boolean isSelected(String compName)(Code) | | Return the selected state of the AbstractButton that has the given name.
If a component is found with the given name and that component is not an
AbstractButton, then false is returned.
See Also: SwingCompnentSupport.getBoolean |
setSelected | public void setSelected(String compName, boolean sel)(Code) | | Sets the selected attribute for the AbstractButton with the given name.
If a component is found with the given name and that component is not an
AbstractButton, this call is ignored.
Parameters: compName - the name of the AbstractButton whose selected attribute toset. Parameters: sel - the selected attribute to set |
setSelectedItem | public void setSelectedItem(String compName, Object value)(Code) | | Sets the selected item in a JComboBox that has the given name. If a combo
is not found with the name, no action is performed.
|
setText | public void setText(String compName, String txt)(Code) | | Sets text property for the Component with the given name. If no component
is found or the Component does not have a text property, then this method
is a no op.
Parameters: compName - the name of the JTextComponent whose text to set Parameters: txt - the text to set |
setVisible | public void setVisible(String compName, boolean bVisible)(Code) | | Shows/Hides the component with the given name.
Parameters: compName - the name of the component to enable/disable Parameters: bVisible - show/hide the component/disable |
|
|