| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| protected static class | |
| protected static class | BorderedComponent.
A subclass of |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| private Icon | |
| pack-priv JComponent | |
| private Icon | |
| pack-priv JLabel | |
| pack-priv JButton | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | actionPerformed(ActionEvent ev)
Implements java. Invoked when an action occurs. |
| public void | |
| private static Image | |
| public Dimension | getMinimumSize()
Overrides javax. If the minimum size has been set to a non- |
| public void | |
| public void |
| collapsed | back to summary |
|---|---|
| pack-priv boolean collapsed | |
| collapseIcon | back to summary |
|---|---|
| private Icon collapseIcon | |
| comp | back to summary |
|---|---|
| pack-priv JComponent comp | |
| expandIcon | back to summary |
|---|---|
| private Icon expandIcon | |
| label | back to summary |
|---|---|
| pack-priv JLabel label | |
| moreOrLessButton | back to summary |
|---|---|
| pack-priv JButton moreOrLessButton | |
| valueLabelStr | back to summary |
|---|---|
| pack-priv String valueLabelStr | |
| BorderedComponent | back to summary |
|---|---|
| public BorderedComponent(String text) | |
| BorderedComponent | back to summary |
|---|---|
| public BorderedComponent(String text, JComponent comp) | |
| BorderedComponent | back to summary |
|---|---|
| public BorderedComponent(String text, JComponent comp, boolean collapsible) | |
| actionPerformed | back to summary |
|---|---|
| public void actionPerformed(ActionEvent ev) Implements java. Doc from java. Invoked when an action occurs. | |
| doLayout | back to summary |
|---|---|
| public void doLayout() Overrides java. Doc from java. Causes this container to lay out its components. Most programs
should not call this method directly, but should invoke
the | |
| getImage | back to summary |
|---|---|
| private static Image getImage(String name) | |
| getMinimumSize | back to summary |
|---|---|
| public Dimension getMinimumSize() Overrides javax. Doc from javax. If the minimum size has been set to a non- | |
| setComponent | back to summary |
|---|---|
| public void setComponent(JComponent comp) | |
| setValueLabel | back to summary |
|---|---|
| public void setValueLabel(String str) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public void | paintIcon(Component c, Graphics g, int x, int y)
Implements javax. Draw the icon at the specified location. |
| direction | back to summary |
|---|---|
| private int direction | |
| textLabel | back to summary |
|---|---|
| private JLabel textLabel | |
| ArrowIcon | back to summary |
|---|---|
| public ArrowIcon(int direction, JLabel textLabel) | |
| getIconHeight | back to summary |
|---|---|
| public int getIconHeight() Implements javax. Doc from javax. Returns the icon's height. | |
| getIconWidth | back to summary |
|---|---|
| public int getIconWidth() Implements javax. Doc from javax. Returns the icon's width. | |
| paintIcon | back to summary |
|---|---|
| public void paintIcon(Component c, Graphics g, int x, int y) Implements javax. Doc from javax. Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color. | |
| Modifier and Type | Field and Description |
|---|---|
| private Component | |
| private Color | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | focusGained(FocusEvent e)
Implements java. Invoked when a component gains the keyboard focus. |
| public void | focusLost(FocusEvent e)
Implements java. Invoked when a component loses the keyboard focus. |
| public Insets | getBorderInsets(Component c, Insets insets)
Overrides javax. Reinitializes the insets parameter with this Border's current Insets. |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Overrides javax. Implements javax. This default implementation does no painting. |
| comp | back to summary |
|---|---|
| private Component comp | |
| focusColor | back to summary |
|---|---|
| private Color focusColor | |
| focusLostTemporarily | back to summary |
|---|---|
| private boolean focusLostTemporarily | |
| FocusBorder | back to summary |
|---|---|
| public FocusBorder(Component comp) | |
| focusGained | back to summary |
|---|---|
| public void focusGained(FocusEvent e) Implements java. Doc from java. Invoked when a component gains the keyboard focus. | |
| focusLost | back to summary |
|---|---|
| public void focusLost(FocusEvent e) Implements java. Doc from java. Invoked when a component loses the keyboard focus. | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Doc from javax. Reinitializes the insets parameter with this Border's current Insets. | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Overrides javax. Implements javax. Doc from javax. This default implementation does no painting. | |
TitledBorder which implements an arbitrary border
with the addition of a JComponent (JLabel, JPanel, etc) in the
default position.
If the border property value is not specified in the constructor or by invoking the appropriate set method, the property value will be defined by the current look and feel, using the following property name in the Defaults Table:
| Modifier and Type | Field and Description |
|---|---|
| private Point | |
| protected JComponent |
| Access | Constructor and Description |
|---|---|
| public | |
| public | LabeledBorder(Border
the border border)Creates a LabeledBorder instance with the specified border and an empty label. |
| public | LabeledBorder(Border
the border border, JComponent the label the border should display label)Creates a LabeledBorder instance with the specified border and label. |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public Insets | getBorderInsets(Component
the component for which this border insets value applies c, Insets the object to be reinitialized insets)Overrides javax. Reinitialize the insets parameter with this Border's current Insets. |
| public JComponent | |
| public Dimension | getMinimumSize(Component
the component where this border will be drawn c)Overrides javax. Returns the minimum dimensions this border requires in order to fully display the border and title. |
| public void | paintBorder(Component
the component for which this border is being painted c, Graphics the paint graphics g, int the x position of the painted border x, int the y position of the painted border y, int the width of the painted border width, int the height of the painted border height)Overrides javax. Implements javax. Paints the border for the specified component with the specified position and size. |
| public void |
| compLoc | back to summary |
|---|---|
| private Point compLoc | |
| label | back to summary |
|---|---|
| protected JComponent label | |
| LabeledBorder | back to summary |
|---|---|
| public LabeledBorder(JComponent label) Creates a LabeledBorder instance.
| |
| LabeledBorder | back to summary |
|---|---|
| public LabeledBorder(Border border) Creates a LabeledBorder instance with the specified border and an empty label.
| |
| LabeledBorder | back to summary |
|---|---|
| public LabeledBorder(Border border, JComponent label) Creates a LabeledBorder instance with the specified border and label.
| |
| computeIntersection | back to summary |
|---|---|
| private static boolean computeIntersection(Rectangle dest, int rx, int ry, int rw, int rh) | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Reinitialize the insets parameter with this Border's current Insets. | |
| getLabel | back to summary |
|---|---|
| public JComponent getLabel() Returns the label of the labeled border. | |
| getMinimumSize | back to summary |
|---|---|
| public Dimension getMinimumSize(Component c) Overrides javax. Returns the minimum dimensions this border requires in order to fully display the border and title.
| |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Overrides javax. Implements javax. Paints the border for the specified component with the specified position and size. | |
| setLabel | back to summary |
|---|---|
| public void setLabel(JComponent label) Sets the title of the titled border. param title the title for the border | |