|
|||||||||
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.AbstractButton
javax.swing.JToggleButton
javax.swing.JCheckBox
edu.princeton.swing.PTristateCheckBox
public class PTristateCheckBox
PTristateCheckBox is a subclass of JCheckBox which supports the rendering of a TristateButtonModel.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JCheckBox |
---|
JCheckBox.AccessibleJCheckBox |
Nested classes/interfaces inherited from class javax.swing.JToggleButton |
---|
JToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModel |
Nested classes/interfaces inherited from class javax.swing.AbstractButton |
---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JCheckBox |
---|
BORDER_PAINTED_FLAT_CHANGED_PROPERTY |
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 javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
PTristateCheckBox()
Create a new PTristateCheckBox. |
|
PTristateCheckBox(Action a)
Create a new PTristateCheckBox. |
|
PTristateCheckBox(Icon icon)
Create a new PTristateCheckBox. |
|
PTristateCheckBox(Icon icon,
boolean selected)
Create a new PTristateCheckBox. |
|
PTristateCheckBox(Icon icon,
boolean selected,
boolean tristate)
Create a new PTristateCheckBox. |
|
PTristateCheckBox(String text)
Create a new PTristateCheckBox. |
|
PTristateCheckBox(String text,
boolean selected)
Create a new PTristateCheckBox. |
|
PTristateCheckBox(String text,
boolean selected,
boolean tristate)
Create a new PTristateCheckBox. |
|
PTristateCheckBox(String text,
Icon icon)
Create a new PTristateCheckBox. |
|
PTristateCheckBox(String text,
Icon icon,
boolean selected)
Create a new PTristateCheckBox. |
|
PTristateCheckBox(String text,
Icon icon,
boolean selected,
boolean tristate)
Create a new PTristateCheckBox. |
Method Summary | |
---|---|
void |
paint(Graphics g)
Override paint() to paint the tristate checkbox differently if it's in tristate. |
Methods inherited from class javax.swing.JCheckBox |
---|
getAccessibleContext, getUIClassID, isBorderPaintedFlat, paramString, setBorderPaintedFlat, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PTristateCheckBox()
public PTristateCheckBox(Icon icon)
public PTristateCheckBox(Icon icon, boolean selected)
public PTristateCheckBox(Icon icon, boolean selected, boolean tristate)
public PTristateCheckBox(String text)
public PTristateCheckBox(Action a)
public PTristateCheckBox(String text, boolean selected)
public PTristateCheckBox(String text, boolean selected, boolean tristate)
public PTristateCheckBox(String text, Icon icon)
public PTristateCheckBox(String text, Icon icon, boolean selected)
public PTristateCheckBox(String text, Icon icon, boolean selected, boolean tristate)
Method Detail |
---|
public void paint(Graphics g)
paint
in class JComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |