A list of ActionListeners registered for this component.
A list of ActionListeners registered for this component.
A list of ActionListeners registered for this component.
A list of AdjustmentListeners registered for this component.
the X-alignment of this component
the Y-alignment of this component
True if this node can have children.
Determines how the isLeaf method figures out if a node is a leaf
node.
If the background color is null, this component inherits the
background color of its parent Container.
Index (from the start of the string) where next character will
be inserted.
Array of children, may be null if this node has no children.
The list of components contained within this Container.
The current directory shown in the dialog.
The component (which may itself be a Container) inside this Container
that currently has the input focus (or, if the input focus is
currently outside this Container, the component to which focus will
return if and when this Container regains focus).
Offset (from start of list) of the item under the cursor (i.e. the
item that will be selected/deselected if the user presses ENTER)
The number of this component's color-pair, as computed by the
ncurses COLOR_PAIR macro.
This flag is true if this component can react to user input.
A list of FocusListeners registered for this component.
If the foreground color is null, this component inherits the
foreground color of its parent Container.
Option that should be initially selected in _options
.
The insets define how much padding to insert inside the Container,
to take into account the border frame (if any).
A flag that is set to true when the container is laid out, and set to
false when a component is added or removed from the container
(indicating that it needs to be laid out again).
A list of ItemListeners registered for this component.
A list of ItemListeners registered for this component.
A list of KeyListeners registered for this component.
The layout manager that will be used to lay out the components.
A list of ListDataListeners registered for this object.
The ListModel that holds the items that are displayed by
this JList.
Used for caching the minimum size of this container, so that we don't
have to keep recalculating it.
The (possibly null) object whose notifyAll() method will be called
as soon as the Runnable's run() method has returned.
Index (from the start of the string) of the character displayed
in the left corner of the field.
Array of options to display to the user in the bottom button-panel.
Determines which option buttons to display (unless an array
of options is explicitly specified with setOptions()
).
The coordinates of the top-left corner of the component, relative to
its parent container.
A blank-filled string the same length as the JTextField.
A WeakReference to the Container (e.g Window, Panel or Dialog)
that contains us.
This node's parent, or null if this node has no parent.
The Runnable whose run() method will be called.
The set of selected indices.
The ListSelectionModel used by this JList.
The currently selected option.
A flag that determines whether this component should be displayed
(if its parent is displayed).
If true, an TextField will be displayed for the user to provide
input.
The length of this component on the screen.
This class provides default implementations for the JFC Action
interface.
Defines an Action
object with a default
description string and default icon.
Defines an Action
object with the specified
description string and a default icon.
Defines an Action
object with the specified
description string and a the specified icon.
This forms the base class for components that exhibit button-like
behavior.
The abstract base class for classes that implement the ListModel interface.
This abstract class provides default implementations for most of the methods
in the TableModel class.
The key used for storing a KeyStroke
to be used as the
accelerator for the action.
Determines whether the specified file is accepted by this filter.
The Action
interface provides a useful extension to the
ActionListener
interface in cases where the same functionality may be accessed by
several controls.
The key used to determine the command String
for the
ActionEvent
that will be created when an
Action
is going to be notified as the result of
residing in a Keymap
associated with a
JComponent
.
An event which indicates that a component-defined action (typically
the pressing of a button) occurred.
The listener interface for receiving action events.
ActionMap
provides mappings from
Object
s
(called keys or Action
names)
to Action
s.
Creates an ActionMap
with no parent and no mappings.
The contained component will inherit the foreground and background
colors of the container if they have not been set yet.
Adds the specified component to the end of this container.
Add the specified component to the tabbed pane.
Adds the specified button to the group.
Appends the specified menu to the end of the JMenuBar.
Add a JMenuItem (or JMenu) to the end of this JMenu.
Removes newChild from its parent and makes it a child of this node
by adding it to the end of this node's child array.
Inserts the specified object at the specified position in this list.
Create a JMenuItem with the specified label and add it to the
menu.
Register an ActionListener object for this button.
Register an ActionListener object for this component.
Register an ActionListener object for this component.
Register an AdjustmentListener object for this component.
Add a character to the virtual terminal at the current cursor position.
Adds the columns from index0_
to index1_
,
inclusive, to the current selection.
Add the specified object to the end of the list.
Add the specified object to the end of the list.
Add an item to the end of the model.
Register a FocusListener object for this component.
Draw a horizontal line of the specified length starting at the current
cursor position.
Add the specified item into the list of items.
Note that this method works only if the data model is
a MutableComboBoxModel (by default, it is).
Register an ItemListener object for this component.
Register an ItemListener object for this component.
Register a KeyListener object for this component.
Register an ListDataListener object.
Register an object that will be notified when the list contents
change.
Add a listener to the list that is notified each time a change to
the selection occurs.
Register an ListSelectionListener object for this component.
Add a listener to the list that is notified each time the selection
changes.
Adds a PropertyChangeListener
to the listener list.
Adds a PropertyChange
listener.
Adds the rows from index0_
to index1_
,
inclusive, to the current selection.
Register a ScrollListener object for this JList.
Register a ScrollListener object for this table.
Register a ScrollListener object for this JTextArea.
Change the selection to be the set union between the current
selection and the indices between index0 and index1 inclusive.
Sets the selection to be the set union between the current
selection and the specified interval between index0_ and index1_
(inclusive).
Change the selection to be the set union between the current
selection and the indices between index0 and index1 inclusive.
Add a horizontal separator to the end of the menu.
Add a string to the virtual terminal at the current cursor position.
Add a new tab with the specified component, title and function-key.
Adds a listener that will be notified each time the data model
changes.
Adds a listener that will be notified each time the data model
changes.
Adds a listener for the TreeModelEvent posted after the tree changes.
Adds a listener for the TreeModelEvent posted after the tree changes.
Adds "listener" to the list of listeners that are notified each
time the set of selected TreePaths changes.
Draw a vertical line of the specified length starting at the current
cursor position.
Register a WindowListener object for this window.
The interface for objects that have an adjustable numeric value
constrained within a bounded range of values.
Adjust the position of the window so that it fits inside the screen.
The adjustment event emitted by Adjustable objects (eg a scrollbar).
Create a new AdjustmentEvent.
The listener interface for receiving adjustment events.
Returns an array of the keys defined in this ActionMap
and
its parent.
Appends the specified text to the end of the document.
This is the base class for all the CHARVA user-interface events.
Construct an event with the specified source and ID.
The CapsTextField is a subclass of JTextField that translates
keystrokes to uppercase before echoing them.
Use this constructor when you want to leave the text field empty
but set its length.
Use this constructor when you want to initialize the value.
Use this constructor when you want to set both the initial value and the
length.
If any PropertyChangeListeners
have been registered, the
changeSupport
field describes them.
KEY_PRESSED events that don't map to a valid character
cause the keyPressed() method to return this value.
Provides the base classes and interfaces for the CHARVA Text User Interface.
Provides interfaces and classes for dealing with events fired by the CHARVA
components.
Provides miscellaneous utility classes.
Provides classes and interfaces that emulate the Java "Swing"
user-interface widgets.
Provides classes and interfaces for drawing borders around Swing components.
Provides classes and interfaces for handling events.
Provides a class used by the JFileChooser component.
Provides classes and interfaces for dealing with charvax.swing.JTable.
Provides classes and interfaces for dealing with editable text components.
Provides classes and interfaces for dealing with charvax.swing.JTree
Wait up to 100msec for a keystroke (or mouse-event).
Indices identifying the position of where the children were.
Children that have been removed.
Creates and returns a forward-order enumeration of this node's
children.
Returns the children of the receiver as an Enumeration.
Removes all the mappings from this ActionMap
.
Clear the contents of the list.
Clears the screen (calls the curses clear() function).
Change the selection to be the empty set.
Change the selection to be the empty set.
Empties the current selection.
Clones the abstract action.
Returns a clone of this rectangle.
Close the terminal window and restore terminal settings
(calls the curses endwin() function).
Ensures that the node identified by the specified path is collapsed
A class used to represent the color values available on a text terminal.
Construct a Color from the specified RGB values.
Emulates the terminfo COLOR_PAIR macro.
This class is used to represent a color-pair (a combination
of a foreground color and a background color).
Construct a color-pair from a foreground color and a
background color.
This field is not used in the CHARVA package but is present to allow
compile-time compatibility with AWT.
This field holds the overrides to the column minimum widths.
ComboBoxDataModel is a ListModel with a selected item.
Component is the abstract superclass of all the other CHARVA widgets.
The ConstrainedTextField is a subclass of CapsTextField that limits
the length of the text.
Use this constructor when you want to leave the text field empty
but set its length.
Use this constructor when you want to set both the initial value and the
length.
Provides a way to flag the event as having been consumed,
so that it never reaches its destination component.
Provides a way to flag the event as having been consumed,
so that it never reaches its destination component.
Container is the abstract superclass of Window and Panel.
Checks whether this component "contains" the specified point,
where the point's x and y coordinates are defined to be relative
to the top left corner of the parent Container.
Returns true if the specified point is inside this Rectangle.
Returns true if the specified point is inside this Rectangle.
Returns true if the specified element is in the list.
Returns true if the specified element is in the list.
This method is called when the contents of the list have changed.
Creates and returns a new JDialog for displaying the required
message.
Does nothing; it's here for compatibility with Swing.
Convenience method for creating a Box with horizontal axis.
Create a LineBorder - ignore the thickness.
Returns a TreeModel wrapping the specified object.
Convenience method for creating a Box with vertical axis.
cyan - static field in class charva.awt.
Color An event which can be posted onto the event queue by an application
to trigger garbage-collection.
Returns the binding for key
, messaging the
parent ActionMap
if the binding is not locally defined.
Returns the action command for this button.
Returns the command string associated with this action.
Gets the alignment for this layout.
Returns the alignment along the X axis.
Returns the alignment along the Y axis.
Returns true if this node is allowed to have children.
Returns true if this TreeNode allows children.
Get the Window that contains this component.
Get the background color of this component.
Gets the block increment (the amount by which the value will
change when the arrow keys are pressed).
Gets the block increment (the amount by which the value will
change when the arrow keys are pressed).
Provides an interface to the ncurses "tigetflag()" function.
Returns the border of the titled border.
Returns the insets of the border.
Returns the insets of the compound border.
Returns the insets of the border.
Returns the insets of the border.
Returns the insets of the border.
Get the bounding rectangle of this component, relative to
the origin of its parent Container.
Returns the number of buttons in the ButtonGroup.
Returns the child of parent at index index in the parent's child
array. parent must be a node previously obtained from this data
source.
Returns the child of parent at index index in the parent's child
array. parent must be a node previously obtained from this data
source.
Returns the child in this node's child array that immediately
follows aChild, which must be a child of this node.
Returns the child at the specified index in this node's child array.
Returns the child TreeNode at index childIndex.
Returns the child in this node's child array that immediately
precedes aChild, which must be a child of this node.
Returns the number of children of this node.
Returns the number of children TreeNodes the TreeNode contains.
Returns the number of children of parent.
Returns the number of children of parent.
Convert an ncurses color value to a color name.
Returns the color-pair index corresponding to the specified
color-pair.
Get the number of columns in the model.
Get the number of columns in the model.
Returns a default name for the column using spreadsheet conventions: A,
B, C...
Get the name of the specified column.
Get the name of the specified column.
Returns the number of columns in this JTextArea.
Return the number of columns in the text field.
Returns true if columns can be selected; otherwise false.
Get the width of the specified column.
Returns the component at the specified index.
Returns the component that contains the specified point, or null
if no component contains the point.
Returns the component that contains the specified point, or null
if no component contains the point.
Returns the number of components in this Container.
Returns an array of all the components in this container.
Returns a reference to "this" (CHARVA doesn't distinuish between
"content panes", "root panes" and suchlike).
Returns the currently displayed directory.
Return a reference to the (non-container) component inside this
Container that has the keyboard input focus (or would have it,
if the focus was inside this container).
Convert the Color object to an integer value compatible with
the ncurses library.
Compute the ncurses color-pair number corresponding to the specified
foreground and background color.
Get absolute cursor position
Get absolute cursor position.
Get the day-of-month value.
Returns the default background color.
Returns the default foreground color.
This static method instantiates a Toolkit object if it does not
already exist; and returns a reference to the instantiated Toolkit.
Returns the depth of the tree rooted at this node -- the longest
distance from this node to a leaf.
Get the echo character for this text field.
Returns the value at the specified index.
Returns the value at the specified index.
Returns the value at the specified index.
Returns an Enumeration of all the buttons in this group.
Returns the size of the visible part of the view.
Returns the currently selected file filter.
Returns the current file-selection mode.
Returns this node's first child.
Get the index of the first row that changed
Finds and returns the first leaf that is a descendant of this node
-- either this node or its first child's first leaf.
Get the index of the first row that changed
Returns the name of this font.
Get the foreground color of this component.
Required to implement abstract method of JComponent (never used).
Returns the icon's height.
Returns the icon's width.
Returns the index of the specified child in this node's child array.
Get the index of the first row that changed.
Get the index of the last row that changed.
Returns the initial value that is to be enabled -- the Component
that has the focus when the pane is initially displayed.
Returns the value the user has input, (relevant only if
_wantsInput is true).
Returns the component that invoked this popup menu.
Get the item affected by the event.
Return the character (in the case of a KEY_TYPED event).
Return the integer key code.
Returns an array of Object
s which are keys for
which values have been set for this AbstractAction
,
or null
if no keys have values set.
Returns the complete label string, including the mnemonic key
surrounded by parentheses (if there is a mnemonic key and the
mnemonic key does not appear within the label).
Returns this node's last child.
Get the index of the last row that changed
Finds and returns the last leaf that is a descendant of this
node -- either this node or its last child's last leaf.
Returns the last component of this path.
Get the index of the last row that changed
Returns the number of levels above this node -- the distance from
the root to this node.
Returns the number of lines of text displayed in the JTextArea.
Returns the offset of the last character in the specified line.
Translates an offset (relative to the start of the document)
to a line number.
Returns the offset of the first character in the specified line
of text.
Returns the line-wrapping policy of the JTextArea.
Return the absolute coordinates of this component's origin.
Overrides the method in the Component superclass, because a Window
has no parent container.
Returns the maximum number of color-pairs (provides an interface
to the ncurses COLOR_PAIRS global variable).
Gets the maximum value of the adjustable object.
Gets the maximum value of the adjustable object.
Returns the last selected index, or -1 if the selection is empty.
Returns the highest selected item index.
Returns the last selected index, or -1 if the selection is empty.
Returns the menu at the specified index.
Returns the menu that has the specified text label.
Returns the number of menus in the menubar.
Returns the menu item at the specified index.
Returns the menu item at the specified index.
Gets the minimum value of the adjustable object.
Gets the minimum value of the adjustable object.
Returns the first selected index, or -1 if the selection is empty.
Returns the lowest selected item index.
Returns the first selected index, or -1 if the selection is empty.
Returns the button's mnemonic character.
Returns the data model that holds the list of items displayed by this
JList.
Returns the TreeModel that is providing the data.
Get the month value (between 1 and 12)
Get information about a mouse event (i.e the coordinates, and which
button was clicked).
Returns the name of the component.
This method is only called if we know that an event is available.
Returns the leaf after this node or null if this node is the last
leaf in the tree.
Provides an interface to the ncurses "tigetnum()" function.
Returns the choices the user can make.
Gets the orientation of the object.
Gets the scrollbar's orientation (VERTICAL or HORIZONTAL)
Return the Window that is the "owner" of this Window.
Returns this ActionMap
's parent.
Get the parent container of this component.
Returns this node's parent or null if this node has no parent.
Returns the parent TreeNode of this TreeNode.
Returns a path containing all the elements of this object,
except the last path component.
Returns the password value as an array of chars.
Returns the path from the root, to get to this node.
Returns an ordered array of Objects containing the components
of this TreePath.
Returns the path that has been added to or removed from the selection.
Returns the path component at the specified index.
Returns the number of elements in the path.
Returns the path for the specified row.
Returns a reference to this JMenu's popup menu.
Returns the size of the viewport needed to display visibleRows rows.
Returns the preferred size of the viewport for this JTextArea
when it is in a JScrollPane (this method implements the
Scrollable interface).
Returns the leaf before this node or null if this node is the first
leaf in the tree.
Returns an array of all the PropertyChangeListener
s added
to this AbstractAction with addPropertyChangeListener().
Returns the root of the tree that contains this node.
Returns the root of the tree.
Returns the root of the tree.
Get the number of rows in the model.
Get the number of rows in the model.
Returns the number of rows that are currently being displayed.
Get the number of rows in the model.
Returns the number of rows in this JTextArea.
Returns true if rows can be selected; otherwise false.
Returns the index of the first selected column, or -1 if
no column is selected.
Returns the number of selected columns.
Returns an array of the indices of all selected columns.
Get the File selected by the user.
Get the first selected index, or -1 if there is no selected index.
Returns an array of the selected indices.
Return the selected item.
Return the selected item.
Returns the selected item.
Returns the index of the first selected row, or -1 if
no row is selected.
Returns the number of selected rows.
Returns an array of the indices of all selected rows.
Get the first selected item on this list, or null
if the selection is empty.
Returns an array of the selected values.
Get the selected radiobutton.
Returns the current selection mode.
Determines whether this list allows multiple selections.
Returns the table's row/column selection mode.
Returns the current selection mode.
Returns the list's implementation of ListSelectionModel.
Returns the table's row selection model.
Returns the model for selections.
Returns the path to the first selected node.
Returns the first path in the selection.
Returns the length of the list.
Returns the length of the list.
Return the size of the button.
Return the size of the text field.
Required to implement abstract method of JComponent (never used).
This may be wrong, but it'll do for now.
Get the screen size of the progress bar.
Return the size of the text field.
Get the screen size of the scrollbar.
Override the method in Container.
Returns the size of this component.
Return the size of the text field.
Returns the length of the list.
This may be wrong, but it'll do for now.
We pretend that the table header is two rows in height so that the
box gets drawn correctly.
Returns the value of the progress string
Provides an interface to the ncurses "tigetstr()" function.
Returns the style of this font.
Returns the number of tabs in this tabbedpane.
Returns the button's label text.
Return this Frame's title, or an empty string if the
frame does not have a tile.
Returns the title of the tab with the specified index.
Returns the color of the title text.
Get the top window of the window stack.
Returns the tty device name (provides an interface to the
Unix C function "ttyname()").
Returns the type of event, which is always
CONTENTS_CHANGED.
Returns the type of event - one of INSERT, UPDATE
or DELETE.
Returns the rectangle representing the area that needs to be
repainted in response to this event.
Returns this node's user object.
Returns the user object associated with this MutableTreeNode.
Returns the user object path, from the root, to get to this node.
Gets the value of the adjustable object.
Returns the option the user has selected.
Gets the value of the adjustable object.
Gets the Object
associated with the specified key.
Gets one of this object's properties
using the associated key.
Returns an attribute value for the cell at (rowIndex, columnIndex)
Returns an attribute value for the cell at (rowIndex, columnIndex)
Returns the JViewport's one child.
Returns the viewport of the component being displayed.
Returns a reference to the border around the JScrollPane's viewport.
Gets the coordinates of the origin of the view, relative to
the origin of the viewport.
Returns the child component's size.
Gets the length of the proportional indicator.
Gets the length of the proportional indicator.
Returns the maximum number of rows that are displayed in the
display area.
Returns the value of _wantsInput.
Returns width (including the diamond symbol).
Required to implement abstract method of JComponent (never used).
Returns the Window that is changing its state.
Returns the line-wrapping style to be used if getLineWrap() is true.
This class defines constraints used for laying out components in the
GridBagLayout layout manager.
Creates a GridBagConstraints object with all of its fields set to
their default value.
GridBagConstraints(int,int,int,int,double,double,int,int,charva.awt.Insets,int,int) - constructor for class charva.awt.
GridBagConstraints This is an approximation of the AWT GridBagLayout layout manager.
A small fixed size picture, typically used to decorate components.
This exception is thrown when a CHARVA component is in an
illegal state for the requested operation.
Construct an IllegalComponentStateException.
Construct an IllegalComponentStateException with the specified
message.
Returns the index of the first occurrence of the specified object.
Returns the index of the first occurrence of the specified object.
Returns the first tab index with the specified title, or
-1 if no tab has the title.
Provides an interface to the terminfo "init_pair()" function.
This is the superclass of KeyEvent and MouseEvent.
Adds child to this MutableTreeNode at index.
Adds child to this MutableTreeNode at index.
Inserts the specified text at the specified position (ie at the
specified offset from the start of the document)..
Insert an item at the specified index.
Insert an item at the specified index.
Insert length indices beginning before/after index, without
notifying the ListSelectionListeners.
Insert length indices beginning before/after index, without notifying
the ListSelectionListeners.
Insert the specified item at the specified index.
Note that this method works only if the data model is
a MutableComboBoxModel (by default, it is).
The Insets class specifies the blank space that must be left around
the inside of the edges of a Container.
Return the intersection between this Rectangle and the specified
Rectangle, or null if the two rectangles don't intersect.
Check if the specified rectangle intersects at all with this rectangle.
Marks the component and all parents above it as needing to be laid out
again.
Marks the container and all parents above it as needing to be laid out
again.
Invalidates the layout, indicating that if the layout manager has cached
information it should be discarded.
Invalidates the layout, indicating that if the layout manager has cached
information it should be discarded.
Invalidates the layout, indicating that if the layout manager has cached
information it should be discarded.
An event which executes the run()
method on a
Runnable
when dispatched by the AWT event dispatcher thread.
Constructs an InvocationEvent with the specified source which
will execute the Runnable's run() method when dispatched by
the AWT dispatch thread.
Constructs an InvocationEvent with the specified source which
will execute the Runnable's run() method when dispatched by
the AWT dispatch thread.
Causes the runnable's run() method to be called in the
AWT dispatch thread.
Causes the runnable.run() method to be executed asynchronously on
the AWT event dispatching thread.
Returns true if the key code is greater than 255, indicating
that it is a function key.
Returns true if the key code is greater than 255, indicating
that it is a function key.
Returns true if the path element has been added to the
selection.
This flag is true is the system property "charva.color" has been set.
Returns true if the column with the specified index is selected.
Returns true if aTreePath is a descendant of this TreePath.
A component is "displayed" if it is contained within a displayed Window.
Returns true if this Window is currently displayed.
Returns the boolean flag indicating whether this TextComponent
is editable or not.
Returns the boolean flag indicating whether this TextComponent
is editable or not.
Returns true if the action is enabled.
Returns the enabled state of the Action
.
Determine whether this component can react to user input.
Returns true if the tab the index is enabled.
Indicates whether this component can be traversed using Tab or
Shift-Tab keyboard focus traversal.
Return true if any of the components within this Container
are focus-traversable (i.e. will accept keyboard input focus when
TAB or SHIFT-TAB is pressed).
This component will not receive focus when Tab or Shift-Tab is pressed.
This component will not receive focus when Tab or Shift-Tab is pressed.
Determines whether this component will accept the keyboard focus
during keyboard traversal.
This component will not receive focus when Tab or Shift-Tab is pressed.
A Window component will not receive input focus during keyboard focus
traversal using Tab and Shift-Tab.
Determines if the specified item in this scrolling list is selected.
Returns true if this point is inside the specified rectangle.
Returns true if this node has no children.
Returns true if this TreeNode is a leaf.
Returns true if node is a leaf.
Returns true if node is a leaf.
Returns true if anotherNode is an ancestor of this node -- if it
is this node, this node's parent, or an ancestor of this node's
parent.
Returns true if aNode is a child of this node.
Returns true if anotherNode is a descendant of this node -- if it
is this node, one of this node's children, or a descendant of one of
this node's children.
Returns true if the item identified by the path is currently selected.
Returns true if "path" is in the current selection.
Returns true if the popup window of this menu is displayed.
Returns true if this node is the root of the tree.
Returns true if the root node of the tree is displayed.
Returns true if the row with the specified index is selected.
Returns the state of the button.
Returns the selected value for the specified button.
Returns true if the specified index is selected.
Returns true if the specified index is selected.
Returns true if no indices are selected.
Returns true if the selection is currently empty.
Returns true if no indices are selected.
Returns true if the selection is currently empty.
Returns the value of the _stringPainted property
Returns true if this menu is the direct child of a menubar.
Return true if this component is totally obscured by one or more
windows that are stacked above it.
Determines whether this component has a valid layout.
Determines whether this component is valid.
Returns true if this component is displayed when its parent
container is displayed.
Returns true if the value identified by path is currently viewable,
which means it is either the root or all of its parents are expanded.
Returns true if the specified window is currently displayed.
An event which indicates that an item was selected or deselected.
Constructs an ItemEvent object.
The listener interface for ItemEvents.
The interface for objects that contain a set of items, one or
more of which can be selected.
Implements the ItemListener interface.
An implementation of a "pushbutton" with a text label.
Default constructor - construct a button with an empty label.
An implementation of a checkbox - an object that is always in one of two
states (SELECTED or DESELECTED) and which displays its state to the user.
The default constructor creates a deselected checkbox with an
empty label.
Use this constructor when you want to initialize the label.
Use this constructor when you want to set both the label and the value.
The JComboBox component allows the user to select an item from a pop-up
list of choices.
When the combobox is in a non-popped-up state, it looks like a JButton
with a "diamond" character on the right.
Creates an empty JComboBox.
Creates a JComboBox with the given model.
Creates a JComboBox that contains the elements in the specified
array.
Creates a JComboBox that contains the elements in the specified
Vector.
The base class for charva.swing components.
In the CHARVA package, the JDialog provides exactly the same functionality
as the Dialog.
Default constructor, creates a JDialog without a specified Frame
owner.
Creates a modal dialog without a title and with a Frame owner.
The JFileChooser class displays a dialog from which the user can choose
a file.
Constructs a JFileChooser pointing to the user's home directory.
Constructs a JFileChooser pointing to the specified directory.
Constructs a JFileChooser with the specified pathname.
In the CHARVA package, JFrame has identical functionality to Frame
A display area for a short text string.
Construct an empty label.
Construct a JLabel with the specified text.
Use this constructor if you want to set the alignment to something
other than left-aligned.
A component that allows the user to select one or more objects from a
list.
The JList does not provide scrolling capability.
Constructs a JList with 5 rows, 10 columns wide.
Construct a JList that displays the elements in the specified
non-null model.
Construct a JList containing the items in the specified array.
Construct a JList containing the items in the specified Vector.
Implements a menu containing JMenuItems and JSeparators.
Constructs a new JMenu with no text
(the text can be set later with the setText() method of the
superclass).
Constructs a new JMenu with the specified string as its text
Constructs a new JMenu with the specified text and the
specified mnemonic character (which must appear in the
text).
An implementation of a menubar.
An implementation of an item in a menu.
Create a menu item without text.
Create a menu item with the specified text.
Create a menu item with the specified text and the specified
mnemonic.
JOptionPane makes it easy to pop up a standard dialog box that prompts
the user for information or displays some information.
The labels of the option-buttons displayed within the popup dialog can be
customized by changing static variables in the JOptionPane class.
Creates a JOptionPane with a test message
Creates an instance of JOptionPane to display the specified message.
Creates an instance of JOptionPane to display the specified message.
Creates an instance of JOptionPane to display the specified message.
Creates an instance of JOptionPane to display the specified message.
JPanel is a generic lightweight container.
The default constructor sets the layout manager to FlowLayout.
Use this constructor if you want to use a layout manager other than
the default FlowLayout.
JPassword allows the editing of a single line of text; it indicates
that something was typed, but does not display the characters that
were typed.
Use this constructor when you want to leave the text field empty
but set its length.
Use this constructor when you want to initialize the value.
Use this constructor when you want to set both the initial value and the
length.
An implementation of a popup menu - a small window that pops up and
displays a number of choices.
Constructs a JPopupMenu that contains the specified items.
A component that displays an integer value within a bounded interval.
Creates a horizontal progress bar that displays a border
but no progress string.
Creates a progress bar with the specified minimum and
maximum values.
An implementation of a radiobutton - an item that is always in one of two
states (SELECTED or DESELECTED) and which displays its state to the user.
Create a new JRadioButton with an empty label.
Use this constructor when you want to initialize the value.
Use this constructor when you want to set both the label and the value.
An implementation of a scrollbar.
Creates a vertical scrollbar with default values.
Creates a scrollbar with the specified orientation
and with default values.
Creates a scrollbar with the specified orientation, value,
extent, min and max.
provides a scrollable view of a component.
Creates an empty JScrollPane.
Create a JScrollPane that displays the contents of the specified
component.
A horizontal separator in a menu.
A component that lets the user display one of a set of components
(usually Panels) at a time.
JTable is a user-interface component that displays data in a two-
dimensional table format.
The user-interface works as follows:
The user can select a column by pressing the left or right arrow keys
to move to the desired column, and then pressing ENTER.
He/she can select a row by pressing the up and down arrow keys to move to
the desired row, then pressing ENTER.
Depending on the value of the selection mode, multiple rows and/or columns
may be selected.
Construct a JTable with the specified data model.
Constructs a table of numRows_ and numColumns_ of empty cells
using a DefaultTableModel.
Construct a JTable from the specified data and column names, using
a DefaultTableModel.
Support for
public void setBounds( Rectangle bounds )
public void setBounds( int top_, int left_, int bottom_, int right_)
public void setBounds(Point topleft_, Dimension size_)
The default constructor creates an empty text area with 10 rows
and 10 columns.
Construct a text area with 10 rows and 10 columns, and containing
the specified text.
Construct a text area wth the specified number of rows and columns,
and containing the specified text.
JTextComponent is a much-simplified version of the Swing
java.swing.text.JTextComponent class, and is the base class
for JTextArea.
Support for
public void setBounds( Rectangle bounds )
public void setBounds( int top_, int left_, int bottom_, int right_)
public void setBounds(Point topleft_, Dimension size_)
Use this constructor when you want to leave the text field empty
but set its length.
Use this constructor when you want to initialize the value.
Use this constructor when you want to set both the initial value and the
length.
(UNDER CONSTRUCTION) A component that displays hierarchical data.
Returns a JTree with the specified TreeNode as its root, which
displays the root node.
Returns a JTree with the specified TreeNode as its root, which
displays the root node and which decides whether a node is a leaf
node in the specified manner.
The JViewport class provides a scrollable window onto an underlying
component, whose size can be greater than the size of the JViewport.
Causes this Window to be sized to fit the preferred sizes and
layouts of its contained components.
Paints the border for the specified component with the specified
position and size.
Paints the border for the specified component with the specified
position and size.
Paints the border for the specified component with the specified
position and size.
Paints the border for the specified component with the specified
position and size.
Paints the border for the specified component with the specified
position and size.
An event which is used to ensure that painting of components is
serialized, i.e that it occurs in the main event-processing loop.
Path to the parent of the nodes that have changed.
Returns a new path containing all the elements of this
object plus child.
PLAIN - static field in class charva.awt.
Font This class reads a scriptfile line by line, parses each line
into a time-interval and a gesture-specifier (either KEY or MOUSE), and
fires the specified keystroke (or mouse-click) after the specified delay.
Represents a point in (x,y) coordinate space, with integer precision.
Invoke all the ActionListener callbacks that may have been registered
for this component.
Creates and returns an enumeration that traverses the subtree
rooted at this node in postorder.
Creates and returns an enumeration that traverses the subtree
rooted at this node in preorder.
Set the _currentFocus to refer to the previous focus-traversable
component in the list of contained components, and put FocusEvents on
the queue, one for the component that is losing the focus and one for
the component gaining the focus.
Provides an interface to the ncurses "mcprint()" function to ship
the specified string to a printer attached to the terminal.
Process events that are implemented by all components.
Overrides method in superclass.
Process an event off the event queue.
Invoke all the FocusListener callbacks that may have been registered
for this component.
Convert keystrokes to uppercase before calling the JTextField's
processKeyEvent() method.
Invoke all the KeyListener callbacks that may have been registered
for this component.
Check the length of the text before calling the superclass'
processKeyEvent() method.
Processes key events occurring on this object by dispatching them
to any registered KeyListener objects.
Process KeyEvents that have been generated by this JComboBox component.
The JLabel class ignores key events.
Processes key events occurring on this object by dispatching them
to any registered KeyListener objects.
The JProgressBar class ignores key events.
Invoke all the KeyListener callbacks that may have been registered
for this component.
Processes key events occurring on this object
Process KeyEvents that have been generated by this JTextArea.
Process KeyEvents that have been generated by this JTextField.
The MultiLineLabel class ignores key events.
Process a MouseEvent that was generated by clicking the mouse
somewhere inside this component.
Process a MouseEvent that was generated by clicking the mouse
somewhere inside this component.
Process a MouseEvent that was generated by clicking the mouse
on this JComboBox.
Process a MouseEvent that was generated by clicking the mouse
somewhere inside this JTextArea.
Process a MouseEvent that was generated by clicking the mouse
somewhere inside this JTextField.
Process scroll events generated by this JList.
Process scroll events generated by this JTable.
Process scroll events generated by this JTextArea.
Process window events occurring on this window by dispatching them
to any registered WindowListener objects.
Adds a binding for key
to action
.
Provides an interface to the ncurses "putp()" function, to write a
string to the terminal; the string must be a return value from
getStringCapability().
Sets the Value
associated with the specified key.
Sets one of this object's properties
using the associated key.
The Rectangle class respresents a rectangular area of the screen; the
boundaries are INCLUSIVE (i.e. the _right instance variable refers to
the rightmost column that is included in the rectangular area, and the
_bottom instance variable refers to the bottom row that is included
in the rectangle.
Construct a Rectangle with the specified boundaries.
red - static field in class charva.awt.
Color Indicate to ncurses that all the lines on the screen have changed
and need to be redrawn the next time Toolkit.sync() is called.
Removes the specified component from this container.
Remove the specified button from the group.
Removes node from this MutableTreeNode, giving it a null parent.
Removes node from this MutableTreeNode.
Removes the child at index from this MutableTreeNode.
Removes the tab and component which corresponds to the specified
index.
Removes the child at index from this MutableTreeNode.
Removes the binding for key
from this ActionMap
.
Removes all of this node's children, setting their parents to null.
Removes all elements from this list and sets its size to zero.
Removes all elements from this list and sets its size to zero.
Remove the specified object from the model.
Remove the specified object from the model.
Deletes the component at the specified index.
Deletes the component at the specified index.
Remove the item at the specified index.
Removes the subtree rooted at this node from the tree, giving this node
a null parent.
Removes this MutableTreeNode from its parent.
Remove the indices in the interval index0,index1 (inclusive)
from the selection model, without notifying the ListSelectionListeners.
Remove the indices in the interval index0,index1 (inclusive)
from the selection model, without notifying
the ListSelectionListeners.
Removes the specified item from the combobox's list.
Remove the item at the specified index.
Remove the specified ListDataListener from the list of listeners
that will be notified.
Remove the specified ListDataListener.
Remove a listener from the list.
Remove the specified ListSelectionListener from the list of listeners
that will be notified when the selection changes.
Remove the specified listener from the list of listeners.
Removes a PropertyChangeListener
from the listener list.
Removes a PropertyChange
listener.
Remove a ScrollListener object that is registered for this JList.
Remove a ScrollListener object that is registered for this table.
Remove a ScrollListener object that is registered for this JTextArea.
Change the selection to be the set difference between the current
selection and the indices between index0 and index1 inclusive.
Sets the selection to be the set difference between the current
selection and the specified interval between index0_ and index1_
(inclusive).
Change the selection to be the set difference between the current
selection and the indices between index0 and index1 inclusive.
Removes the node identified by the specified path from the
current selection.
Removes the row at the index row from the current selection.
Removes the specified listener from the list of listeners.
Removes the specified listener from the list of listeners.
Removes a listener previously added with addTreeModelListener.
Removes a listener previously added with addTreeModelListener.
Removes "listener" from the list of listeners that are notified
each time the set of selected TreePaths changes.
Causes this component to be repainted as soon as possible
(this is done by posting a RepaintEvent onto the system queue).
Replaces the text from the specified start position to end position
with the specified text.
This method should be invoked by all subclasses of Component
which override this method; because this method generates the
FOCUS_GAINED event when the component gains the keyboard focus.
This method should be invoked by all subclasses of Component
which override this method; because this method generates the
FOCUS_GAINED event when the component gains the keyboard focus.
The JLabel component never gets the keyboard input focus.
The JProgressBar component never gets the keyboard input focus.
This method should be invoked by all subclasses of Component
which override this method; because this method generates the
FOCUS_GAINED event when the component gains the keyboard focus.
This method should be invoked by all subclasses of Component
which override this method; because this method generates the
FOCUS_GAINED event when the component gains the keyboard focus.
This method should be invoked by all subclasses of Component
which override this method; because this method generates the
FOCUS_GAINED event when the component gains the keyboard focus.
The MultiLineLabel component never gets the keyboard input focus.
Causes a SyncEvent to be posted onto the AWT queue, thus requesting
a refresh of the physical screen.
Users can define their own events as long as the ID is greater
than RESERVED_ID_MAX.
Reset the clipping rectangle to the screen size.
This field holds the overrides to the row minimum heights.
This field is not used in the CHARVA package but is present to allow
compile-time compatibility with AWT.
Implement the Runnable interface; shuts down the ncurses environment
and restores the previous terminal settings.
Called by a Scrollable object such as JTable or JList, when its state
changes in such a way that it may need to be scrolled.
The interface for objects that can be contained in a ScrollPane
and scrolled within a Viewport.
A ScrollEvent is posted on the event queue by a scrollable object
such as a Table, when its state changes in such a way that it may
need to be scrolled (if it is contained within a ScrollPane).
Construct a ScrollEvent with the specified direction and limit
parameters.
The listener interface for receiving ScrollEvents.
Makes sure all the path components in path are expanded (except
for the last path component) and scrolls so that the node identified
by the path is displayed.
Scrolls the item identified by row until it is displayed.
Set the fields to the current time.
Sets the action command for this button.
Sets the alignment for this layout.
Determines whether or not this node is allowed to have children.
Set the background color of this component.
Sets the background color of this container and all its
contained components that do not yet have their background
color set.
Sets the background color of this JFrame and its content pane.
Sets the background color of this JMenu and all its
contained JMenuItems that do not yet have their background
color set.
Set the background color.
Sets the block increment of the scrollbar.
Sets the border of this titled border.
Sets the position of the text insertion caret for this JTextArea.
Set a clipping rectangle.
Set a clipping rectangle.
Set the number of columns INSIDE the list.
Sets the number of columns in this JTextArea.
Sets the number of columns in this Textfield, and then invalidates
the layout.
Set whether selection of columns is allowed.
Selects the columns from index0_
to index1_
,
inclusive.
Set the current directory.
Set absolute cursor position
Set absolute cursor position
Set up an empty data vector with the specified number of rows
and columns.
Replaces the values in the _dataVector instance variable with the
values in the data_ array.
Changes the default background color.
Sets the operation that will happen by default when the user
initiates a "close" on this frame.
Changes the default foreground color.
Set the echo character for this password field.
Make the combobox editable.
Sets the boolean that indicates whether this TextComponent should be
editable or not.
Sets whether this textfield can be edited.
Enables or disables the action.
Sets the enabled state of the Action
.
Enable this component to react to user input.
Make the tab at the specified index enabled.
Sets the current file filter.
Sets the JFileChooser
to allow the user to select
files only directories only, or files and directories.
Set this container's current keyboard focus.
Set the foreground color of this component.
Sets the foreground color of this container and all its
contained components that do not yet have their foreground
color set.
Sets the foreground color of this JFrame and its content pane.
Sets the foreground color of this JMenu and all its
contained JMenuItems that do not yet have their foreground
color set.
Set the foreground color.
Sets the default input value that is displayed to the user.
Sets the initial value that is to be enabled -- the Component
that has the focus when the pane is initially displayed.
Sets the initial value of the text field for the user to modify.
Sets the "invoker" of this popup menu; must be a JMenuBar
or another JPopupMenu.
Sets the menubar for this frame.
Set the key code to indicate a physical key was pressed
Sets the line-wrapping policy of the JTextArea.
Constructs a ListModel from an array of Objects and then applies
setModel to it.
Constructs a ListModel from a Vector and then applies setModel to it.
Sets the location of the dialog to be centered over the specified
component.
Sets the maximum value of the adjustable object.
Set the progress bar's maximum value.
Set the scrollbar's maximum value.
Sets the maximum number of rows that the JComboBox displays.
Sets the minimum value of the adjustable object.
Set the progress bar's minimum value.
Set the scrollbar's minimum value.
Set the button's mnemonic character.
This method does nothing because dialogs are
ALWAYS modal in the CHARVA package.
Sets the data model that the JComboBox uses to obtain the list of
items.
Sets the model that represents the "contents" of the list, and
clears the selection.
Sets the data model to the specified TableModel and registers with it
as a listener for events from the model.
Sets the TreeModel that will provide the data.
Sets the name of the component.
Sets the options this pane displays in the button-panel at
the bottom.
Set the parent container of this component.
Sets this ActionMap
's parent.
Sets this node's parent to newParent but does not change the
parent's child array.
Sets the parent of this MutableTreeNode to newParent.
Displays this menu's popup menu if the specified value is true;
hides the menu if it is false.
Determines whether or not the root node from the TreeModel is visible.
Sets the number of rows in this JTextArea.
Set whether selection of rows is allowed.
Selects the rows from index0_
to index1_
,
inclusive.
Sets the state of the button.
Sets the selected value for the specified button.
Sets the selected item in the JComboBox by specifying
the index in the list.
Select the item at the specified index.
Sets the selected item in the JComboBox by specifying the
object in the list.
Change the selection to be between index0 and index1 inclusive.
Change the selection to be between index0 and index1 inclusive.
Sets the flag that determines whether this list allows multiple
selections.
Sets the table's selection mode to allow selection of either single
rows and/or columns, or multiple rows and/or columns.
Sets the selection model of the JList to an implementation
of the ListSelectionModel interface.
Sets the table's row selection model and registers for notifications
from the new selection model.
Sets the tree's selection model.
Selects the node identified by the specified path.
Sets the selection to "path".
Selects the node at the specified row in the display.
Set the size of the component on the screen.
Set the size of the component on the screen.
Overrides the corresponding method in Container.
Overrides the corresponding method in Container.
Sets the value of the progress string
Set the value of the _stringPainted property
Sets the button's label text.
Sets the button's label text.
Set the text that is presented by this JTextField.
Sets the title of the tab with the specified index.
Set the color of the title text.
Resets the user object of this MutableTreeNode to object.
Resets the user object of this MutableTreeNode to object.
Sets the value of the adjustable object.
Set the progress bar's value.
Set the scrollbar's value.
This empty implementation is provided so that users don't have to
provide their own implementation if their table is not editable.
Sets the attribute value for the cell at position (row, column).
Sets the attribute value for the cell at position (row, column).
Set the JViewport's one child.
Adds a border around the viewport.
Creates a viewport if necessary, and then sets its view.
Sets the coordinates of the origin of the view, relative to
the origin of the viewport.
Shows or hides this component depending on the value of the
parameter visible_
Sets the length of the proportional indicator.
Set the scrollbar's extent (a.k.a "visible amount").
Set the maximum number of rows that can be displayed at a time
by the JScrollPane which contains this JList.
Sets the number of rows that are to be displayed.
If newvalue_ is true, a JTextField will be displayed for
the user to provide text input.
Sets the line-wrapping style to be used if getLineWrap() is true.
The key used for storing a short String
description for the action, used for tooltip text.
Lay out the contained components, draw the window and its contained
components, and then read input events off the EventQueue and send
them to the component that has the input focus.
Brings up a dialog where the number of choices is dependent on the
value of the optiontype_ parameter.
Pops up a custom file chooser dialog with a custom approve button.
Brings up a dialog that allows the user to input a value.
Brings up a confirmation dialog titled "Confirm"
Brings up a confirmation dialog with the specified title.
Pops up a "Open File" file chooser dialog; this is a convenience
method and is equivalent to showDialog(Component, "Open").
Pops up a "Save File" file chooser dialog; this is a convenience
method and is equivalent to showDialog(Component, "Save").
This class is used to clean up the ncurses environment and restore the
terminal settings when the application terminates, whether the program
exits intentionally or because of a signal such as SIGTERM, SIGHUP etc.
Returns the number of KeyStroke
bindings.
The key used for storing a small Icon
, such
as ImageIcon
, for the action, used for toolbar buttons.
An interface to the terminfo "start_colors()" function.
A collection of constants used for positioning components on the screen.
This subclass of java.beans.PropertyChangeSupport is identical
in functionality -- it sacrifices thread-safety (not a Swing
concern) for reduce memory consumption, which helps performance
(both big Swing concerns).
Constructs a SwingPropertyChangeSupport object.
A collection of utility methods for Swing.
Synchronize the state of the physical terminal with the state of
the virtual terminal maintained by curses (ie provides an interface
to the curses refresh() function).
A special event which is used for coalescing screen-refresh actions
if possible, in order to speed up redrawing.
This method implements the TableModelListener interface;
it is invoked when this table's TableModel generates a
TableModelEvent.
The TableHeader class is used by the ScrollPane for drawing the
column headers of a table.
Constructs a table of numRows_ and numColumns_ of empty cells
using a DefaultTableModel.
The TableModel interface specifies the methods that the JTable
class will use to interrogate a tabular data model.
This event is fired when the data in a table changes.
All row data has changed; listeners should discard all state
and re-query the TableModel.
This row of data has been updated.
The data in rows [firstRow_, lastRow] have been updated.
The cells in the specified column in rows [firstRow_, lastRow]
have been updated.
This defines the interface for an object that listens for changes in a
TableModel.
This exception is thrown by the Toolkit class when it cannot
find a requested capability in the terminfo database (or
when it finds the requested capability but it is of the wrong
type).
A class that implements a border with the specified title.
Create a titled border with the specified border and an
empty title.
Create a TitledBorder instance with the specified border
and title, and with the title text in black.
Creates a TitledBorder instance with the specified border,
title, title-justification, title-position, title-font,
and title-color.
Create a TitledBorder instance with a line border and
the specified title, with the title text in black.
Correct manage of FocusEvents
public FocusEvent getLastFocusEvent()
protected void setLastFocusEvent(FocusEvent ev_ )
Return a string representation of this object.
Returns a String representation of this component.
Returns a String representation of this component.
Returns a String representation of this component.
Returns a string that displays and identifies this object's
properties.
Translates this point by the x and y values given in "point_"
Translates this point by dx_ along the x axis and by dy_ along
the y axis.
This interface defines a suitable data model for a JTree.
Used to create an event when the node structure has changed in some way,
identifying the path to the root of a modified subtree as an array of
Objects.
This defines the interface for an object that listens for changes in a
TreeModel.
This interface defines the requirements for an object that can be
used as a node in a JTree.
Invoked after a node (or a set of siblings) has
changed in some way.
Invoked after nodes have been inserted into the tree.
Invoked after nodes have been removed from the tree.
Represents a path to a node.
Primarily provided for subclasses that represent paths in a
different manner.
Constructs a new TreePath, which is the path identified by parent
ending in lastElement.
Constructs a TreePath containing only a single element.
Constructs a path from an array of Objects, uniquely identifying
the path from the root of the tree to a specific node, as returned
by the tree's data model.
Constructs a new TreePath with the identified path components
of length length.
An event that characterizes a change in the current selection.
Represents a change in the selection of a TreeSelectionModel.
The listener that's notified when the selection in a TreeSelectionModel changes.
This interface represents the current state of the selection for
the tree component.
Invoked after the tree has drastically changed structure
from a given node down.
Trigger garbage collection.