|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SwingComponentSupport
Interface that defines common methods for working with SwingComponents in a Container.
Method Summary | |
---|---|
void |
enableComponent(String commandId,
boolean bEnable)
Enables/Disables the component associated with the commandid |
boolean |
getBoolean(String compName)
Returns the selected state of the AbstractButton that has the given name. |
AbstractButton |
getButton(String compName)
Returns the button that is contained in this panel and has the given name. |
JCheckBox |
getCheckBox(String compName)
Returns the JCheckBox that is contained in this panel and has the given name. |
JComboBox |
getComboBox(String compName)
Returns the JComboBox that is contained in this panel and has the given name. |
int |
getInteger(String compName,
int defaultValue)
Locates the JTextField that has the given component name. |
JLabel |
getLabel(String compName)
Returns the JLabel that is contained in this panel and has the given name. |
JList |
getList(String compName)
Returns the JList that is contained in this panel and has the given name. |
JPanel |
getPanel(String compName)
Returns the JPanel that is contained in this panel and has the given name. |
JProgressBar |
getProgressBar(String compName)
Returns JProgressBar that is contained in this panel and has the given name. |
JRadioButton |
getRadioButton(String compName)
Returns the JRadioButton that is contained in this panel and has the given name. |
Object |
getSelectedItem(String compName)
Returns the selected item from the JList or JComboBox that has the given name. |
JSpinner |
getSpinner(String compName)
Returns JSpinner that is contained in this panel and has the given name. |
JTabbedPane |
getTabbedPane(String compName)
Returns the JTabbedPane that is contained in this panel and has the given name. |
JTable |
getTable(String compName)
Returns the JTable that is contained in this panel and has the given name. |
String |
getText(String compName)
Returns the text property from a Component. |
JTextComponent |
getTextComponent(String compName)
Returns the JTextComponent that is contained in this panel and has the given name. |
JTextField |
getTextField(String compName)
Returns the JTextField that is contained in this panel and has the given name. |
JTree |
getTree(String compName)
Returns the JTree that is contained in this panel and has the given name. |
boolean |
isSelected(String compName)
Return the selected state of the AbstractButton that has the given name. |
void |
setSelected(String compName,
boolean sel)
Sets the selected attribute for the AbstractButton with the given name. |
void |
setSelectedItem(String compName,
Object value)
Sets the selected item in a JComboBox that has the given name. |
void |
setText(String compName,
String txt)
Sets text property for the Component with the given name. |
void |
setVisible(String compName,
boolean bVisible)
Shows/Hides the component with the given name. |
Methods inherited from interface com.jeta.open.support.ComponentFinder |
---|
getAllNamedComponents, getComponentByName, getComponentsByName, reset |
Method Detail |
---|
void enableComponent(String commandId, boolean bEnable)
commandId
- the id of the command whose button to enable/disablebEnable
- true/false to enable/disableboolean getBoolean(String compName)
AbstractButton getButton(String compName)
JCheckBox getCheckBox(String compName)
JComboBox getComboBox(String compName)
int getInteger(String compName, int defaultValue)
compName
- the JTextField to find.defaultValue
- the value to return if the component is not a JTextField or
the text in the field is not an integer.
JLabel getLabel(String compName)
JList getList(String compName)
JPanel getPanel(String compName)
JProgressBar getProgressBar(String compName)
JRadioButton getRadioButton(String compName)
Object getSelectedItem(String compName)
JSpinner getSpinner(String compName)
JTable getTable(String compName)
JTabbedPane getTabbedPane(String compName)
JTextComponent getTextComponent(String compName)
JTextField getTextField(String compName)
String getText(String compName)
JTree getTree(String compName)
boolean isSelected(String compName)
SwingCompnentSupport#getBoolean
void setVisible(String compName, boolean bVisible)
compName
- the name of the component to enable/disablebVisible
- show/hide the component/disablevoid setSelected(String compName, boolean sel)
compName
- the name of the AbstractButton whose selected attribute to
set.sel
- the selected attribute to setvoid setSelectedItem(String compName, Object value)
void setText(String compName, String txt)
compName
- the name of the JTextComponent whose text to settxt
- the text to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |