archive-za.com » ZA » P » PITMAN.CO.ZA

Total: 183

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Component
    to its parent container parent protected java lang ref WeakReference parent A WeakReference to the Container e g Window Panel or Dialog that contains us The reason that we use a WeakReference is to allow the parent to be garbage collected when there are no more strong references to it enabled protected boolean enabled This flag is true if this component can react to user input visible protected boolean visible A flag that determines whether this component should be displayed if its parent is displayed This flag is set to true by default except for Window which is initially invisible See Also setVisible boolean isVisible keyListeners protected java util Vector keyListeners A list of KeyListeners registered for this component focusListeners protected java util Vector focusListeners A list of FocusListeners registered for this component alignmentX protected float alignmentX the X alignment of this component alignmentY protected float alignmentY the Y alignment of this component foreground protected Color foreground If the foreground color is null this component inherits the foreground color of its parent Container background protected Color background If the background color is null this component inherits the background color of its parent Container cursesColor protected int cursesColor The number of this component s color pair as computed by the ncurses COLOR PAIR macro This is set when the component is added to a container and whenever the colors are changed after that so we don t have to re determine it every time we draw the component A value of 1 indicates that the color pair number needs to be recomputed TOP ALIGNMENT public static final float TOP ALIGNMENT See Also Constant Field Values CENTER ALIGNMENT public static final float CENTER ALIGNMENT See Also Constant Field Values BOTTOM ALIGNMENT public static final float BOTTOM ALIGNMENT See Also Constant Field Values LEFT ALIGNMENT public static final float LEFT ALIGNMENT See Also Constant Field Values RIGHT ALIGNMENT public static final float RIGHT ALIGNMENT See Also Constant Field Values Constructor Detail Component public Component Constructor Method Detail setVisible public void setVisible boolean visible Shows or hides this component depending on the value of the parameter visible show public void show Deprecated This method has been replaced by setVisible boolean hide public void hide Deprecated This method has been replaced by setVisible boolean isVisible public boolean isVisible Returns true if this component is displayed when its parent container is displayed draw public abstract void draw To be implemented by concrete subclasses isDisplayed public boolean isDisplayed A component is displayed if it is contained within a displayed Window Even though it may be displayed it may be obscured by other Windows that are on top of it and it may not be visible to the user because the visible flag may be false getLocation public Point getLocation setLocation public void setLocation Point origin setLocation public void setLocation int x int y getLocationOnScreen public Point getLocationOnScreen Return the absolute coordinates of this component s origin Note that Window which is a subclass of Container has a

    Original URL path: http://www.pitman.co.za/projects/charva/api/charva/awt/Component.html (2015-12-05)
    Open archived version from archive

  • CompoundBorder
    int colorpair int x int y int width int height Paints the border for the specified component with the specified position and size Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll toString wait wait wait Constructor Detail CompoundBorder public CompoundBorder Border outsideBorder Border insideBorder Method Detail getBorderInsets public Insets getBorderInsets Component component Returns the insets of the compound border Specified by getBorderInsets in interface

    Original URL path: http://www.pitman.co.za/projects/charva/api/charvax/swing/border/CompoundBorder.html (2015-12-05)
    Open archived version from archive

  • ConstrainedTextField
    awt Component alignmentX alignmentY background cursesColor enabled focusListeners foreground keyListeners origin parent visible BOTTOM ALIGNMENT CENTER ALIGNMENT LEFT ALIGNMENT RIGHT ALIGNMENT TOP ALIGNMENT Constructor Summary ConstrainedTextField int length Use this constructor when you want to leave the text field empty but set its length ConstrainedTextField java lang String text int length Use this constructor when you want to set both the initial value and the length Method Summary void processKeyEvent KeyEvent ke Check the length of the text before calling the superclass processKeyEvent method Methods inherited from class charvax swing JTextField addActionListener debug draw getActionCommand getColumns getHeight getSize getWidth isEditable minimumSize postActionEvent processEvent processMouseEvent requestFocus setActionCommand setBounds setBounds setBounds setColumns setEditable setFont setText toString Methods inherited from class charvax swing text JTextComponent getCaretPosition getDocument getText setCaretPosition setDocument Methods inherited from class charvax swing JComponent getBorder getInsets setBorder Methods inherited from class charva awt Component addFocusListener addKeyListener contains contains getAlignmentX getAlignmentY getAncestorWindow getBackground getBounds getCursesColor getForeground getLocation getLocationOnScreen getName getParent hasFocus hide invalidate isDisplayed isEnabled isFocusTraversable isTotallyObscured isValid isVisible processFocusEvent repaint requestSync setBackground setEnabled setForeground setLocation setLocation setName setParent setVisible show validate validateCursesColor Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll wait wait wait Constructor

    Original URL path: http://www.pitman.co.za/projects/charva/api/charva/awt/util/ConstrainedTextField.html (2015-12-05)
    Open archived version from archive

  • Container
    foreground color of this container and all its contained components that do not yet have their foreground color set void setHeight int height void setLayout LayoutManager mgr void setSize Dimension size void setSize int width int height void setWidth int width void validate Validates this container and all of its contained components Methods inherited from class charva awt Component addFocusListener addKeyListener contains contains getAlignmentX getAlignmentY getAncestorWindow getBackground getBounds getCursesColor getForeground getLocation getLocationOnScreen getName getParent hasFocus hide isDisplayed isEnabled isTotallyObscured isVisible processEvent processFocusEvent processMouseEvent repaint requestSync setBounds setBounds setBounds setEnabled setLocation setLocation setName setParent setVisible show validateCursesColor Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll toString wait wait wait Field Detail components protected java util Vector components The list of components contained within this Container size protected Dimension size The container s size layoutMgr protected LayoutManager layoutMgr The layout manager that will be used to lay out the components currentFocus protected Component currentFocus 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 insets protected Insets insets The insets define how much padding to insert inside the Container to take into account the border frame if any For a Window they will be 1 1 for a Panel they will be 0 0 isValid protected boolean isValid 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 minimumSize protected Dimension minimumSize Used for caching the minimum size of this container so that we don t have to keep recalculating it This dimension is valid only if isValid is true Constructor Detail Container public Container Method Detail doLayout public void doLayout doLayout is intended to be used by subclasses of Container such as Window JPanel and JScrollPane getSize public Dimension getSize Specified by getSize in class Component getHeight public int getHeight Specified by getHeight in class Component getWidth public int getWidth Specified by getWidth in class Component setSize public void setSize Dimension size setSize public void setSize int width int height setHeight public void setHeight int height setWidth public void setWidth int width minimumSize public Dimension minimumSize Specified by minimumSize in class Component getComponent public Component getComponent int n Returns the component at the specified index getComponentAt public Component getComponentAt Point p Returns the component that contains the specified point or null if no component contains the point The x and y coordinates of the point are relative to the origin of this container getComponentAt public Component getComponentAt int x int y Returns the component that contains the specified point or null if no component contains the point The x and y coordinates of the point are relative to the origin of this container add public Component add Component

    Original URL path: http://www.pitman.co.za/projects/charva/api/charva/awt/Container.html (2015-12-05)
    Open archived version from archive

  • DateEntryField
    the month value between 1 and 12 int getYear Get the year value void keyPressed KeyEvent e KEY PRESSED events are fired when any key including a function key and cursor key is pressed while the component has keyboard input focus void keyReleased KeyEvent e This is never called void keyTyped KeyEvent e KEY TYPED events are fired when a key representing a valid text character not a function key or cursor key is pressed void set Set the fields to the current time void setDay int day void setMonth int month Set the month field void setYear int year Set the year field Methods inherited from class charvax swing JPanel debug draw getBorder getInsets setBorder toString Methods inherited from class charva awt Container add add doLayout getComponent getComponentAt getComponentAt getComponentCount getComponents getCurrentFocus getHeight getSize getWidth invalidate isFocusTraversable isValid minimumSize nextFocus previousFocus processKeyEvent remove requestFocus setBackground setFocus setForeground setHeight setLayout setSize setSize setWidth validate Methods inherited from class charva awt Component addFocusListener addKeyListener contains contains getAlignmentX getAlignmentY getAncestorWindow getBackground getBounds getCursesColor getForeground getLocation getLocationOnScreen getName getParent hasFocus hide isDisplayed isEnabled isTotallyObscured isVisible processEvent processFocusEvent processMouseEvent repaint requestSync setBounds setBounds setBounds setEnabled setLocation setLocation setName setParent setVisible show validateCursesColor Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll wait wait wait Constructor Detail DateEntryField public DateEntryField Frame owner DateEntryField public DateEntryField Frame owner java util TimeZone zone DateEntryField public DateEntryField Dialog owner DateEntryField public DateEntryField Dialog owner java util TimeZone zone Method Detail keyPressed public void keyPressed KeyEvent e Description copied from interface KeyListener KEY PRESSED events are fired when any key including a function key and cursor key is pressed while the component has keyboard input focus KeyEvent getKeyCode can be used to find out which key was pressed Specified by keyPressed in interface KeyListener

    Original URL path: http://www.pitman.co.za/projects/charva/api/charva/awt/util/DateEntryField.html (2015-12-05)
    Open archived version from archive

  • DefaultComboBoxModel
    element is in the list java lang Object getElementAt int index Returns the value at the specified index java lang Object getSelectedItem Return the selected item int getSize Returns the length of the list int indexOf java lang Object elem Returns the index of the first occurrence of the specified object void insertElementAt java lang Object obj int index Insert an item at the specified index void removeAllElements Removes all elements from this list and sets its size to zero void removeElement java lang Object obj Remove the specified object from the model void removeElementAt int index Deletes the component at the specified index void setSelectedItem java lang Object anItem Set the selected item Methods inherited from class charvax swing AbstractListModel addListDataListener fireContentsChanged fireIntervalAdded fireIntervalRemoved removeListDataListener Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll toString wait wait wait Methods inherited from interface charvax swing ListModel addListDataListener removeListDataListener Constructor Detail DefaultComboBoxModel public DefaultComboBoxModel Default constructor DefaultComboBoxModel public DefaultComboBoxModel java util Vector items Constructs a DefaultComboBoxModel object initialized with a vector DefaultComboBoxModel public DefaultComboBoxModel java lang Object items Constructs a DefaultComboBoxModel object initialized with an array of objects Method Detail getElementAt public java lang Object getElementAt int index Returns the value at the specified index Specified by getElementAt in interface ListModel getSize public int getSize Returns the length of the list Specified by getSize in interface ListModel contains public boolean contains java lang Object elem Returns true if the specified element is in the list indexOf public int indexOf java lang Object elem Returns the index of the first occurrence of the specified object getSelectedItem public java lang Object getSelectedItem Return the selected item Specified by getSelectedItem in interface ComboBoxModel setSelectedItem public void setSelectedItem java lang Object anItem Set the selected item Specified by setSelectedItem in

    Original URL path: http://www.pitman.co.za/projects/charva/api/charvax/swing/DefaultComboBoxModel.html (2015-12-05)
    Open archived version from archive

  • DefaultListModel
    list void clear Clear the contents of the list boolean contains java lang Object elem Returns true if the specified element is in the list java lang Object getElementAt int index Returns the value at the specified index int getSize Returns the length of the list int indexOf java lang Object elem Returns the index of the first occurrence of the specified object void removeAllElements Removes all elements from this list and sets its size to zero void removeElementAt int index Deletes the component at the specified index Methods inherited from class charvax swing AbstractListModel addListDataListener fireContentsChanged fireIntervalAdded fireIntervalRemoved removeListDataListener Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll toString wait wait wait Methods inherited from interface charvax swing ListModel addListDataListener removeListDataListener Constructor Detail DefaultListModel public DefaultListModel Default constructor Method Detail getElementAt public java lang Object getElementAt int index Returns the value at the specified index Specified by getElementAt in interface ListModel getSize public int getSize Returns the length of the list Specified by getSize in interface ListModel clear public void clear Clear the contents of the list contains public boolean contains java lang Object elem Returns true if the specified element is in the

    Original URL path: http://www.pitman.co.za/projects/charva/api/charvax/swing/DefaultListModel.html (2015-12-05)
    Open archived version from archive

  • DefaultListSelectionModel
    index1 Change the selection to be between index0 and index1 inclusive void setSelectionMode int mode Set the selection mode Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll toString wait wait wait Field Detail listeners protected java util ArrayList listeners The list of listeners selection protected java util TreeSet selection The set of selected indices Constructor Detail DefaultListSelectionModel public DefaultListSelectionModel Method Detail addListSelectionListener public void addListSelectionListener ListSelectionListener l Add a listener to the list that is notified each time a change to the selection occurs Specified by addListSelectionListener in interface ListSelectionModel removeListSelectionListener public void removeListSelectionListener ListSelectionListener l Remove a listener from the list Specified by removeListSelectionListener in interface ListSelectionModel setSelectionMode public void setSelectionMode int mode Set the selection mode The following modes are allowed SINGLE SELECTION Only one list index can be selected at a time SINGLE INTERVAL SELECTION One contiguous index interval can be set at at time Specified by setSelectionMode in interface ListSelectionModel getSelectionMode public int getSelectionMode Returns the current selection mode Specified by getSelectionMode in interface ListSelectionModel isSelectedIndex public boolean isSelectedIndex int index Returns true if the specified index is selected Specified by isSelectedIndex in interface ListSelectionModel getMinSelectionIndex public int getMinSelectionIndex Returns the first selected index or 1 if the selection is empty Specified by getMinSelectionIndex in interface ListSelectionModel getMaxSelectionIndex public int getMaxSelectionIndex Returns the last selected index or 1 if the selection is empty Specified by getMaxSelectionIndex in interface ListSelectionModel isSelectionEmpty public boolean isSelectionEmpty Returns true if no indices are selected Specified by isSelectionEmpty in interface ListSelectionModel clearSelection public void clearSelection Change the selection to be the empty set If this represents a change to the selection then notify each ListSelectionListener Specified by clearSelection in interface ListSelectionModel addSelectionInterval public void addSelectionInterval int index0 int index1 Change the selection to be the

    Original URL path: http://www.pitman.co.za/projects/charva/api/charvax/swing/DefaultListSelectionModel.html (2015-12-05)
    Open archived version from archive



  •