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".
  • DefaultMutableTreeNode
    child array This method is called from insert and remove to reassign a child s parent it should not be called from anywhere else Specified by setParent in interface MutableTreeNode getParent public TreeNode getParent Returns this node s parent or null if this node has no parent Specified by getParent in interface TreeNode getChildAt public TreeNode getChildAt int index Returns the child at the specified index in this node s child array Specified by getChildAt in interface TreeNode Parameters index an index into this node s child array Returns the TreeNode in this node s child array at the specified index getChildCount public int getChildCount Returns the number of children of this node Specified by getChildCount in interface TreeNode getIndex public int getIndex TreeNode aChild Returns the index of the specified child in this node s child array If the specified node is not a child of this node returns 1 This method performs a linear search and is O n where n is the number of children Parameters aChild the TreeNode to search for among this node s children Returns an int giving the index of the node in this node s child array or 1 if the specified node is a not a child of this node children public java util Enumeration children Creates and returns a forward order enumeration of this node s children Modifying this node s child array invalidates any child enumerations created before the modification Specified by children in interface TreeNode setAllowsChildren public void setAllowsChildren boolean allows Determines whether or not this node is allowed to have children If allows is false all of this node s children are removed Parameters allows true if this node is allowed to have children getAllowsChildren public boolean getAllowsChildren Returns true if this node is allowed to have children Specified by getAllowsChildren in interface TreeNode getUserObject public java lang Object getUserObject Returns this node s user object Specified by getUserObject in interface MutableTreeNode removeAllChildren public void removeAllChildren Removes all of this node s children setting their parents to null If this node has no children this method does nothing add public void add MutableTreeNode newChild 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 Parameters newChild node to add as a child of this node Throws java lang IllegalArgumentException if newChild is null java lang IllegalStateException if this node does not allow children isNodeAncestor public boolean isNodeAncestor TreeNode anotherNode 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 Note that a node is considered an ancestor of itself If anotherNode is null this method returns false This operation is at worst O h where h is the distance from the root to this node Parameters anotherNode node to test as an ancestor of this node Returns true if this node is a descendant of

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

  • DefaultTableModel
    java lang String getColumnName int column Get the name of the specified column int getColumnWidth int column Get the width of the specified column int getRowCount Get the number of rows in the model java lang Object getValueAt int rowIndex int columnIndex Returns an attribute value for the cell at rowIndex columnIndex void setDataVector int rows int columns Set up an empty data vector with the specified number of rows and columns void setDataVector java lang Object data java lang Object columnNames Replaces the values in the dataVector instance variable with the values in the data array void setValueAt java lang Object value int row int column Sets the attribute value for the cell at position row column Methods inherited from class charvax swing table AbstractTableModel addTableModelListener fireTableCellUpdated fireTableChanged fireTableDataChanged fireTableRowsDeleted fireTableRowsInserted removeTableModelListener Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll toString wait wait wait Constructor Detail DefaultTableModel public DefaultTableModel int rows int columns Constructs a DefaultTableModel with the specified number of rows and columns and with cell values of null DefaultTableModel public DefaultTableModel java lang Object data java lang Object columnNames Constructs a DefaultTableModel and initialises the table by passing data and columnNames to the setDataVector method Method Detail getColumnCount public int getColumnCount Get the number of columns in the model getColumnName public java lang String getColumnName int column Get the name of the specified column Specified by getColumnName in interface TableModel Overrides getColumnName in class AbstractTableModel getColumnWidth public int getColumnWidth int column Get the width of the specified column getRowCount public int getRowCount Get the number of rows in the model Specified by getRowCount in interface TableModel Specified by getRowCount in class AbstractTableModel getValueAt public java lang Object getValueAt int rowIndex int columnIndex Returns an attribute value for the cell at rowIndex

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

  • DefaultTreeModel
    the tree boolean isLeaf java lang Object node Returns true if node is a leaf void removeTreeModelListener TreeModelListener l Removes a listener previously added with addTreeModelListener void valueForPathChanged TreePath path java lang Object newValue Called when the user has altered the value for the item identified by path to newValue Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll toString wait wait wait Field Detail asksAllowsChildren protected boolean asksAllowsChildren Determines how the isLeaf method figures out if a node is a leaf node If true a node is a leaf node if it does not allow children If it allows children it is not a leaf node even if no children are present That lets you distinguish between folder nodes and file nodes in a file system for example If this value is false then any node which has no children is a leaf node and any node may acquire children listeners protected java util ArrayList listeners root protected TreeNode root Method Detail getRoot public java lang Object getRoot Returns the root of the tree Returns null only if the tree has no nodes Specified by getRoot in interface TreeModel getChild public java lang Object getChild java lang Object parent int index 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 This should not return null if index is a valid index for parent that is index 0 index getChildCount parent Specified by getChild in interface TreeModel getChildCount public int getChildCount java lang Object parent Returns the number of children of parent Returns 0 if the node is a leaf or if it has no children parent must be a node previously obtained from this data source Specified by

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

  • Dialog
    CENTER ALIGNMENT LEFT ALIGNMENT RIGHT ALIGNMENT TOP ALIGNMENT Constructor Summary Dialog Dialog owner Dialog Dialog owner java lang String title Dialog Frame owner Creates a modal dialog without a title and with a Frame owner Dialog Frame owner java lang String title Method Summary void debug int level void draw Draw all the components in this window and request the keyboard focus boolean isModal void setModal boolean modal This method does nothing because dialogs are ALWAYS modal in the CHARVA package void setTitle java lang String title Methods inherited from class charva awt Window addWindowListener adjustLocation getLocationOnScreen getOwner hide isDisplayed isFocusTraversable pack processEvent processWindowEvent run show Methods inherited from class charva awt Container add add doLayout getComponent getComponentAt getComponentAt getComponentCount getComponents getCurrentFocus getHeight getInsets getSize getWidth invalidate 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 getName getParent hasFocus isEnabled isTotallyObscured isVisible processFocusEvent processMouseEvent repaint requestSync setBounds setBounds setBounds setEnabled setLocation setLocation setName setParent setVisible validateCursesColor Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll toString wait wait wait

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

  • Dimension
    int height int width Constructor Summary Dimension Creates a new Dimension object with width and height 0 Dimension Dimension dimension Dimension int width int height Method Summary java lang Object clone void setSize Dimension dimension java lang String toString Methods inherited from class java lang Object equals finalize getClass hashCode notify notifyAll wait wait wait Field Detail width public int width height public int height Constructor Detail Dimension public Dimension

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

  • EmptyBorder
    the border void paintBorder Component component 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 EmptyBorder public EmptyBorder Insets insets EmptyBorder public EmptyBorder int top int left int bottom int right Method Detail getBorderInsets public Insets

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

  • EventListener
    event Interface EventListener All Known Subinterfaces Action ActionListener AdjustmentListener FocusListener ItemListener KeyListener ListDataListener ListSelectionListener ScrollListener TreeSelectionListener WindowListener All Known Implementing Classes AbstractAction AbstractButton ButtonGroup DateEntryField JComboBox JScrollPane JTable KeyAdapter WindowAdapter public interface EventListener A tagging interface that all event listener

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

  • EventQueue
    the low priority queue are empty AWTEvent waitForNextEvent Block until an event is available then return the event Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll toString wait wait wait Method Detail getInstance public static EventQueue getInstance postEvent public void postEvent AWTEvent evt waitForNextEvent public AWTEvent waitForNextEvent Block until an event is available then return the event Returns the next available AWTEvent getNextEvent public

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



  •