|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.utk.cs.icl.rest.swing.JSectionPanel
Panel providing methods for sectioning it and handeling the oppropriate events.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
static int |
LBL_IDX
Label index in the Object arrays |
static int |
PNL_IDX
Index of the Panel in the Object arrays |
static int |
ROW_IDX
Index of the GridBagLayout row for the section panel |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JSectionPanel()
Creates new form JSectionPanel not using the section padding |
|
JSectionPanel(boolean padSections)
Creates new form JSectionPanel |
|
| Method Summary | |
Component |
add(JComponent c)
Add an JComponent to the last created section |
JCheckBox |
addCheckBox(JPanel sectionPanel,
String label,
boolean value,
String tooltip)
Adds a checkbox of value with the given label to the specified section. |
JCheckBox |
addCheckBox(String label)
Adds an unchecked checkbox with the given label to the last created section. |
JCheckBox |
addCheckBox(String label,
boolean value)
Adds a checkbox of value with the given label to the last created section. |
JCheckBox |
addCheckBox(String label,
boolean value,
String tooltip)
Adds a checkbox of value with the given label to the last created section. |
JCheckBox |
addCheckBox(String sectionName,
String label,
boolean value,
String tooltip)
Adds a checkbox of value with the given label to the specified section. |
JComboBox |
addComboBox(JPanel sectionPanel,
String label,
Object[] values,
String tooltip,
boolean editable)
Adds a JComboBox of the values with the given label to the specified section. |
JComboBox |
addComboBox(String label,
Object[] values,
boolean editable)
Adds a JComboBox of the values with the given label to the last created section. |
JComboBox |
addComboBox(String label,
Object[] values,
String tooltip,
boolean editable)
Adds a JComboBox of the values with the given label to the last created section. |
JComboBox |
addComboBox(String sectionName,
String label,
Object[] values,
String tooltip,
boolean editable)
Adds a JComboBox of the values with the given label to the specified section. |
JComponent |
addComponent(JComponent value)
Adds a text JComponent to the specified section. |
JComponent |
addComponent(JPanel sectionPanel,
JComponent value)
Adds a text JComponent to the specified section. |
JComponent |
addComponent(String sectionName,
JComponent value)
Adds a text JComponent to the specified section. |
JList |
addList(JPanel jpSection,
String label,
Object[] value,
boolean differentRows,
ListSelectionListener lsl)
Add a JList to the specified section. |
JList |
addList(JPanel sectionPanel,
String label,
Object[] value,
int visibleRows,
boolean differentRows,
ListSelectionListener lsl)
Add a JList to the specified section. |
JList |
addList(Object[] value,
int visibleRows,
ListSelectionListener lsl)
Add a JList to the last created section. |
JList |
addList(Object[] value,
ListSelectionListener lsl)
Add a JList to the last created section. |
JList |
addList(String label,
Object[] value)
Add a JList to the last created section. |
JList |
addList(String label,
Object[] value,
boolean differentRows)
Add a JList to the last created section. |
JList |
addList(String label,
Object[] value,
boolean differentRows,
ListSelectionListener lsl)
Add a JList to the last created section. |
JList |
addList(String label,
Object[] value,
int visibleRows)
Add a JList to the last created section. |
JList |
addList(String label,
Object[] value,
int visibleRows,
boolean differentRows)
Add a JList to the last created section. |
JList |
addList(String label,
Object[] value,
int visibleRows,
boolean differentRows,
ListSelectionListener lsl)
Add a JList to the last created section. |
JList |
addList(String label,
Object[] value,
int visibleRows,
ListSelectionListener lsl)
Add a JList to the last created section. |
JList |
addList(String label,
Object[] value,
ListSelectionListener lsl)
Add a JList to the last created section. |
JList |
addList(String sectionName,
String label,
Object[] value,
boolean differentRows,
ListSelectionListener lsl)
Add a JList to the specified section. |
JList |
addList(String sectionName,
String label,
Object[] value,
int visibleRows,
boolean differentRows,
ListSelectionListener lsl)
Add a JList to the specified section. |
JTextArea |
addTextArea(JPanel sectionPanel,
String label,
String value,
boolean isDescription)
Add a text area to the specified section. |
JTextArea |
addTextArea(JPanel sectionPanel,
String label,
String value,
String tooltip,
boolean isDescription)
Add a text area to the specified section. |
JTextArea |
addTextArea(String value)
Add a text area to the to last created section. |
JTextArea |
addTextArea(String value,
boolean isDescription)
Add a text area to the to last created section. |
JTextArea |
addTextArea(String label,
String value,
boolean isDescription)
Add a text area to the to last created section. |
JTextArea |
addTextArea(String label,
String value,
String tooltip)
Add a text area to the to last created section. |
JTextArea |
addTextArea(String sectionName,
String label,
String value,
boolean isDescription)
Add a text area to the specified section. |
JTextArea |
addTextArea(String sectionName,
String label,
String value,
String tooltip)
Add a text area to the specified section. |
JTextField |
addTextField(JPanel sectionPanel,
String label,
String value,
String tooltip)
Adds a text field with the given value to the specified section. |
JTextField |
addTextField(String label,
String tooltip)
Adds a text field without a the text value to the last created section. |
JTextField |
addTextField(String label,
String value,
String tooltip)
Adds a text field with the given value to the last created section. |
JTextField |
addTextField(String sectionName,
String label,
String value,
String tooltip)
Adds a text field with the given value to the specified section. |
JLabel |
addTextLbl(JPanel sectionPanel,
String label,
String value)
Adds a text label and the text value to the specified section. |
JLabel |
addTextLbl(String value)
Adds a text label and the text value to the last created section. |
JLabel |
addTextLbl(String label,
String value)
Adds a text label and the text value to the last created section. |
JLabel |
addTextLbl(String sectionName,
String label,
String value)
Adds a text label and the text value to the specified section. |
void |
changeSectionPanel(String name,
JPanel newPanel)
Change the section panel for the named section |
JPanel |
createSection(String name,
String text,
String tooltiptext)
Creates a new drop-down section in the getInfo window |
JPanel |
createSection(String name,
String text,
String tooltiptext,
Color background)
Creates a new drop-down section in the getInfo window |
JPanel |
createSection(String name,
String text,
String tooltiptext,
Color background,
JPanel contentPanel)
Creates a new drop-down section in the getInfo window |
JTextArea |
getJtaDescription()
Getter for property jtaDescription. |
JPanel |
getSectionPnl(String name)
Get the section with the specified name |
boolean |
isSectionPaddingUsed()
Discover if Section Padding is being used to move all the section to the top of the panel. |
void |
setBackground(Color color)
Set the background color of the SectionPanel |
void |
setJtaDescription(JTextArea jtaDescription)
Setter for property jtaDescription. |
void |
setOpaque(boolean isOpaque)
Set the opacity of the panel |
void |
setParentFrame(JFrame elFrame)
Setter for property parentFrame. |
void |
setPrevName(String name)
Sets the name of the last component created |
void |
setSectionPnl(String name,
JPanel panel)
Set the section with the specified name |
void |
setVisible(boolean visibility)
Set frame visibility |
void |
toggleSectionVisible()
Toggle the visibility of the last section created |
void |
useSectionPadding(boolean b)
If set to true, all the sections are forced to the top of the panel. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int LBL_IDX
public static final int PNL_IDX
public static final int ROW_IDX
| Constructor Detail |
public JSectionPanel()
public JSectionPanel(boolean padSections)
padSections - If the sections should be auto pushed to the top of the panel.| Method Detail |
public Component add(JComponent c)
c - Component to add
public JPanel createSection(String name,
String text,
String tooltiptext)
name - Name of the sectiontext - Text to display to the usertooltiptext - Mouse over text
public JPanel createSection(String name,
String text,
String tooltiptext,
Color background)
name - Name of the sectiontext - Text to display to the usertooltiptext - Mouse over textbackground - Background color of the panels
public JPanel createSection(String name,
String text,
String tooltiptext,
Color background,
JPanel contentPanel)
contentPanel - Panel to show and hidename - Name of the sectiontext - Text to display to the usertooltiptext - Mouse over textbackground - Background color of the panels
public JComponent addComponent(JComponent value)
value - JComponent to add to the section
public JComponent addComponent(String sectionName,
JComponent value)
sectionName - The section panel to add the componentsvalue - JComponent to add to the section
public JComponent addComponent(JPanel sectionPanel,
JComponent value)
sectionPanel - The section panel to add the componentsvalue - JComponent to add to the section
public JLabel addTextLbl(String value)
value - String containing the value for the Label
public JLabel addTextLbl(String label,
String value)
label - String containing the label namevalue - String containing the value for the label
public JLabel addTextLbl(String sectionName,
String label,
String value)
sectionName - The section to add the componentslabel - String containing the label namevalue - String containing the value for the label
public JLabel addTextLbl(JPanel sectionPanel,
String label,
String value)
sectionPanel - The section panel to add the componentslabel - String containing the label namevalue - String containing the value for the label
public JTextField addTextField(String label,
String tooltip)
label - String containing the value for the Labeltooltip - String value for the checkbox's tooltip
public JTextField addTextField(String label,
String value,
String tooltip)
label - String containing the label namevalue - String containing the value for the labeltooltip - String value for the checkbox's tooltip
public JTextField addTextField(String sectionName,
String label,
String value,
String tooltip)
sectionName - The section to add the componentslabel - String containing the label namevalue - String containing the value for the labeltooltip - String value for the checkbox's tooltip
public JTextField addTextField(JPanel sectionPanel,
String label,
String value,
String tooltip)
sectionPanel - The section panel to add the componentslabel - String containing the label namevalue - String containing the value for the labeltooltip - String value for the checkbox's tooltip
public JCheckBox addCheckBox(String label)
label - String containing the value for the Label
public JCheckBox addCheckBox(String label,
boolean value)
label - String containing the label namevalue - Boolean value for the checkbox
public JCheckBox addCheckBox(String label,
boolean value,
String tooltip)
label - String containing the label namevalue - Boolean value for the checkboxtooltip - String value for the checkbox's tooltip
public JCheckBox addCheckBox(String sectionName,
String label,
boolean value,
String tooltip)
sectionName - The section to add the componentslabel - String containing the label namevalue - Boolean value for the checkboxtooltip - String value for the checkbox's tooltip
public JCheckBox addCheckBox(JPanel sectionPanel,
String label,
boolean value,
String tooltip)
sectionPanel - The section panel to add the componentslabel - String containing the label namevalue - Boolean value for the checkboxtooltip - String value for the checkbox's tooltip
public JComboBox addComboBox(String label,
Object[] values,
boolean editable)
values - Values to fill the JComboBoxeditable - Should the combobox be editablelabel - String containing the label name
public JComboBox addComboBox(String label,
Object[] values,
String tooltip,
boolean editable)
values - Values to fill the JComboBoxeditable - Should the combobox be editablelabel - String containing the label nametooltip - String value for the checkbox's tooltip
public JComboBox addComboBox(String sectionName,
String label,
Object[] values,
String tooltip,
boolean editable)
sectionName - The section to add the componentsvalues - Values to fill the JComboBoxeditable - Should the combobox be editablelabel - String containing the label nametooltip - String value for the checkbox's tooltip
public JComboBox addComboBox(JPanel sectionPanel,
String label,
Object[] values,
String tooltip,
boolean editable)
sectionPanel - The section to add the componentsvalues - Values to fill the JComboBoxeditable - Should the combobox be editablelabel - String containing the label nametooltip - String value for the checkbox's tooltip
public JTextArea addTextArea(String value,
boolean isDescription)
value - Initial value of the text areaisDescription - Set if this is the description component, currently not used
public JTextArea addTextArea(String value)
value - Initial value of the text area
public JTextArea addTextArea(String label,
String value,
String tooltip)
tooltip - Tooltip Textlabel - Label of the text area, if null then no labelvalue - Initial value of the text area
public JTextArea addTextArea(String label,
String value,
boolean isDescription)
label - Label of the text area, if null then no labelvalue - Initial value of the text areaisDescription - Set if this is the description component, currently not used
public JTextArea addTextArea(String sectionName,
String label,
String value,
boolean isDescription)
sectionName - Section to add these components, if null add to the last created sectionlabel - Label of the text area, if null then no labelvalue - Initial value of the text areaisDescription - Set if this is the description component, currently not used
public JTextArea addTextArea(String sectionName,
String label,
String value,
String tooltip)
tooltip - Tooltip TextsectionName - Section to add these components, if null add to the last created sectionlabel - Label of the text area, if null then no labelvalue - Initial value of the text area
public JTextArea addTextArea(JPanel sectionPanel,
String label,
String value,
boolean isDescription)
sectionPanel - Section to add these components, if null add to the last created sectionlabel - Label of the text area, if null then no labelvalue - Initial value of the text areaisDescription - Set if this is the description component, currently not used
public JTextArea addTextArea(JPanel sectionPanel,
String label,
String value,
String tooltip,
boolean isDescription)
sectionPanel - Section to add these components, if null add to the last created sectiontooltip - Tooltip Textlabel - Label of the text area, if null then no labelvalue - Initial value of the text areaisDescription - Set if this is the description component, currently not used
public JList addList(Object[] value,
ListSelectionListener lsl)
value - values to use in the listlsl - List selection listener to handle the selection of list items
public JList addList(Object[] value,
int visibleRows,
ListSelectionListener lsl)
value - values to use in the listvisibleRows - Number of visible rowslsl - List selection listener to handle the selection of list items
public JList addList(String label,
Object[] value)
label - Label of the list, if null no label is createdvalue - values to use in the list
public JList addList(String label,
Object[] value,
boolean differentRows)
differentRows - Display the label and component on different rowslabel - Label of the list, if null no label is createdvalue - values to use in the list
public JList addList(String label,
Object[] value,
int visibleRows)
label - Label of the list, if null no label is createdvalue - values to use in the listvisibleRows - Number of visible rows
public JList addList(String label,
Object[] value,
int visibleRows,
boolean differentRows)
label - Label of the list, if null no label is createdvalue - values to use in the listdifferentRows - If the label and list should appear on different rowsvisibleRows - Number of visible rows
public JList addList(String label,
Object[] value,
ListSelectionListener lsl)
label - Label of the list, if null no label is createdvalue - values to use in the listlsl - List selection listener to handle the selection of list items
public JList addList(String label,
Object[] value,
boolean differentRows,
ListSelectionListener lsl)
label - Label of the list, if null no label is createdvalue - values to use in the listdifferentRows - If the label and list should appear on different rowslsl - List selection listener to handle the selection of list items
public JList addList(String label,
Object[] value,
int visibleRows,
ListSelectionListener lsl)
label - Label of the list, if null no label is createdvalue - values to use in the listvisibleRows - Number of visible rowslsl - List selection listener to handle the selection of list items
public JList addList(String label,
Object[] value,
int visibleRows,
boolean differentRows,
ListSelectionListener lsl)
differentRows - Display the label and component on different rowslabel - Label of the list, if null no label is createdvalue - values to use in the listvisibleRows - Number of visible rowslsl - List selection listener to handle the selection of list items
public JList addList(JPanel jpSection,
String label,
Object[] value,
boolean differentRows,
ListSelectionListener lsl)
jpSection - Section to add these component, if null added to the last created sectionlabel - Label of the list, if null no label is createdvalue - values to use in the listdifferentRows - If the label and list should appear on different rowslsl - List selection listener to handle the selection of list items
public JList addList(String sectionName,
String label,
Object[] value,
boolean differentRows,
ListSelectionListener lsl)
sectionName - Name of the section to add these components, if null added to the last created sectionlabel - Label of the list, if null no label is createdvalue - values to use in the listdifferentRows - If the label and list should appear on different rowslsl - List selection listener to handle the selection of list items
public JList addList(String sectionName,
String label,
Object[] value,
int visibleRows,
boolean differentRows,
ListSelectionListener lsl)
sectionName - Name of the section to add the components, if null add to last created sectionlabel - Label of the list, if null no label is createdvalue - values to use in the listvisibleRows - Number of visible rowsdifferentRows - If the label and list should appear on different rowslsl - List selection listener to handle the selection of list items
public JList addList(JPanel sectionPanel,
String label,
Object[] value,
int visibleRows,
boolean differentRows,
ListSelectionListener lsl)
sectionPanel - Section to add these component, if null added to the last created sectionlabel - Label of the list, if null no label is createdvalue - values to use in the listvisibleRows - Number of visible rowsdifferentRows - If the label and list should appear on different rowslsl - List selection listener to handle the selection of list items
public void setVisible(boolean visibility)
visibility - Visibilitypublic JPanel getSectionPnl(String name)
name - Name of the section to retrieve
public void changeSectionPanel(String name,
JPanel newPanel)
name - section namenewPanel - New Section panel
public void setSectionPnl(String name,
JPanel panel)
name - Name of the section to retrievepanel - New Sectionpublic void toggleSectionVisible()
public void setParentFrame(JFrame elFrame)
elFrame - Value of property parentFrame.public JTextArea getJtaDescription()
public void setJtaDescription(JTextArea jtaDescription)
jtaDescription - New value of property jtaDescription.public void setPrevName(String name)
name - New name for the previous component createdpublic void setBackground(Color color)
color - New Colorpublic boolean isSectionPaddingUsed()
public void setOpaque(boolean isOpaque)
isOpaque - Opacitypublic void useSectionPadding(boolean b)
b - New value of property bUseSectionPadding.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||