| Home >> All >> jcurses >> [ widgets Javadoc ] |
jcurses.widgets: Javadoc index of package jcurses.widgets.
Package Samples:
jcurses.widgets
Classes:
Widget: This class is superclass for all jcurses widgets. For implementing a ne widget you must derive it. An jcurses widget is already used within a window. Its task ist to help it's WidgetContainer to layout itself, giving needed informations, to paint itself and to handle input. Handling input is needed only, if the widget has is an input widget ( examples are text input widget, list widget) and has currently focus, that is is selected by user to handle input. This selectig ocurrs by typing a special key (currenty 'tab') to switch between input widgets. All widgets are ordered in a hierarchy. An widget ...
Window: This class is a jcurses implementation of an text based window. An window under jcurses is, differnt from other GUI libraries, not a widget, this contains a panel ( a the called root panel ), that contains all widgets. A window can, but doesn't must, have a border and a title. All windows under jcurses are managed in a stack, the topmost visible window window on the stack gets all input chars for handling, this is so called focus window. If an window are created, it gets automatically to the top of the stack and leaves the until an other window is created or explicitly brought to the top.
BorderLayoutManager: This class is a layout manager that works like Swing's BorderLayout. Up to 5 widgets can be added to this layout at once, in the following positions: NORTH, SOUTH, WEST, EAST, and CENTER. Components in the outer positions are set to their preferred size, and the component in the CENTER is allocated the remaining screen area.
PopUpMenu: This class implements a popup menu window. Such windows can be used for example to implemene menu bars ( currently not cantained in the library ). A popup menu window gives a user the possibility to select and ivoke an item from a list and is than closed. Separator items can be used as by MenuList described.
IScrollable: This interface is to be implemented by widgets, that use ScrollbarPainter to paint vertical or horizontal (or both ) scrollbars. Througth this interface the widget gives to the ScrollbarPainter needed data to paint or refresh scrollbars;
GridLayoutManager: This class is a layout manager that works like as the DefaultLayoutManager with an difference: the painting rectangle is shared in many grid cells and the constraints are stated not in real coodinates on the painting rectangle, but in 'grid-coordinates'
Button: This class implements a buttton-widget. Such button has a label and is 'clicked' by user typing a special character (default 'enter'). If it is 'clicked', it generates an ActionEvent , that is delegetated to registered listeners.
DefaultLayoutManager: This is a default layout manager. The constraints state for each widget to layout a coordinates of the rectangle, within that the widget is placed and the alignment of the widget, if its preferred size is smaller as the rectangle's size-
Panel: This class implements a panel container for widgets. A panel is a rectangle with a specified color to place on it other widgets. Each window has a panel called root panel that serves as root for the widget hierarchy.
PopUpList: This class implements a popup list. Such list has always one of the items selected and gives the possibility to change this selection ( througth an popup menu that is shown, if the user typed 'enter')
CheckBox: This class implements a checkbox widget. This checkboxes state is modified by typing a special char (default 'space'). You can register listeners by this widget to track state changes.
Dialog: This class implements a modal dialog. The diffirence to a normal window is, that a call oft the 'show' - method blocks, until the dialog window is closed.
ScrollbarPainter: This class is used by widgets, having scrollable content, to paint scrollbars. The class jcurses.util.ScrollbarUtils is deprecated.
WindowManager: This class is a jcurses-internal class, whose task is to manage jcurses text based windows. It schouldn't be used writing applications.
WidgetContainer: This class is a superclass for widget containers, that is, for widgets, that can contain other widgets
LayoutManager: This interface must be implemented bei layout managers, that layout widgets within widget containers.
WidgetUtilities: WidgetUtilities contains utility methods for the jcurses library.
BorderLayoutConstraint: Stores the layout preferences for a widget within the BorderLayout
TextField: This class implements a input text field to edie a one line text.
TextArea: This class implements a text area to edit a text with meny lines
TextComponent: The class is the superclass for text editing widgets
BorderPanel: This class implements a panel with a border.
FileDialog: This class implements a file select dialog
WidgetsConstants: Die Klasse enthält wichtige Konstanten
Label: This class implements a label widget
| Home | Contact Us | Privacy Policy | Terms of Service |