home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-07-02 | 119.4 KB | 5,546 lines |
- DEF_COMPONENTNAME
- Applet
- DEF_SUPERCLASS
- Panel
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- applet
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_VISUAL
- DEF_BASE
- DEF_PANEL
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Base applet class.
- DEF_ENDLIST
- DEF_METHOD
- public Applet()
- // Sets the applet stub. This is done by automatically by the system.
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean isActive()
- // Returns true if the applet is active. An applet is marked active
- // just before the start method is called.
- //
- // See Also:
- // start
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public URL getDocumentBase()
- // Gets the document URL. This is the URL of the document in which
- // the applet is embedded.
- //
- // See Also:
- // getCodeBase
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public URL getCodeBase()
- // Gets the base URL. This is the URL of the applet itself.
- //
- // See Also:
- // getDocumentBase
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String getParameter(String name)
- // Gets a parameter of the applet.
- //
- DEF_ENDLIST
- DEF_METHOD
- public AppletContext getAppletContext()
- // Gets a handle to the applet context. The applet context
- // lets an applet control the applet's environment which is
- // usually the browser or the applet viewer.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void resize(int width,
- int height)
- // Requests that the applet be resized.
- //
- // Overrides:
- // resize in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void resize(Dimension d)
- // Requests thatthe applet be resized.
- //
- // Overrides:
- // resize in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void showStatus(String msg)
- // Shows a status message in the applet's context.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Image getImage(URL url)
- // Gets an image given a URL. Note that this method
- // always returns an image object immediatly, even if
- // the image does not exist. The actual image data is
- // loaded when it is first needed.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Image getImage(URL url,
- String name)
- // Gets an image relative to a URL. This methods returns
- // immediately, even if the image does not exist. The actual
- // image data is loaded when it is first needed.
- //
- // See Also:
- // getImage
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public AudioClip getAudioClip(URL url)
- // Gets an audio clip.
- //
- DEF_ENDLIST
- DEF_METHOD
- public AudioClip getAudioClip(URL url,
- String name)
- // Gets an audio clip.
- //
- // See Also:
- // getAudioClip
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String getAppletInfo()
- // Returns a string containing information about
- // the author, version and copyright of the applet.
- //
- DEF_ENDLIST
- DEF_METHOD
- public String[][] getParameterInfo()
- // Returns an array of strings describing the
- // parameters that are understood by this
- // applet. The array consists of sets of three strings:
- // name/type/description. For example:
- //
- // String pinfo[][] = {
- // {"fps", "1-10", "frames per second"},
- // {"repeat", "boolean", "repeat image loop"},
- // {"imgs", "url", "directory in which the images live"}
- // };
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void play(URL url)
- // Plays an audio clip. Nothing happens if the audio clip could
- // not be found.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void play(URL url,
- String name)
- // Plays an audio clip. Nothing happens if the audio clip could
- // not be found.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void init()
- // Initializes the applet.
- // You never need to call this directly, it is called automatically
- // by the system once the applet is created.
- //
- // See Also:
- // start, stop, destroy
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void start()
- // Called to start the applet. You never need to call this method
- // directly, it is called when the applet's document is visited.
- //
- // See Also:
- // init, stop, destroy
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void stop()
- // Called to stop the applet. It is called when the applet's document is
- // no longer on the screen. It is guaranteed to be called before destroy()
- // is called. You never need to call this method directly.
- //
- // See Also:
- // init, start, destroy
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void destroy()
- // Cleans up whatever resources are being held. If the applet is active
- // it is stopped stopped.
- //
- // See Also:
- // init, start, stop
- //
- //
- DEF_ENDLIST
- DEF_PROPERTY
- Top
- int
- move(bounds().x, AVALUE);
- AVALUE = bounds().y;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Left
- int
- move(AVALUE, bounds().y);
- AVALUE = bounds().x;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Height
- int
- resize(bounds().width, AVALUE);
- AVALUE = bounds().height;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- Width
- int
- resize(AVALUE, bounds().height);
- AVALUE = bounds().width;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- ForegroundColor
- Color
- setForeground(AVALUE);
- AVALUE = getForeground();
- Color.black
- DEF_ENDLIST
- DEF_PROPERTY
- BackgroundColor
- Color
- setBackground(AVALUE);
- AVALUE = getBackground();
- Color.gray
- DEF_ENDLIST
- DEF_PROPERTY
- FontName
- String
- setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
- AVALUE = getFont().getName();
- Courier
- DEF_ENDLIST
- DEF_PROPERTY
- FontStyle
- int
- setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
- AVALUE = getFont().getStyle();
- Font.PLAIN
- DEF_ENDLIST
- DEF_PROPERTY
- FontSize
- int
- setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
- AVALUE = getFont().getSize();
- 10
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- AWTError
- DEF_SUPERCLASS
- Error
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // An AWT Error.
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- AWTException
- DEF_SUPERCLASS
- Exception
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that an Absract Window Toolkit exception has occurred.
- DEF_ENDLIST
- DEF_METHOD
- public AWTException(String msg)
- // Constructs an AWTException with the specified detail message.
- // A detail message is a String that describes this particular
- // exception.
- //
- // Parameters:
- // msg - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- BorderLayout
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- LayoutManager
- DEF_ENDLIST
- DEF_DECLARATION
- // A TNT style border bag layout. It will layout a container
- // using members named "North", "South", "East", "West" and
- // "Center".
- // The "North", "South", "East" and "West" components get layed out
- // according to their preferred sizes and the constraints of the
- // container's size. The "Center" component will get any space left
- // over.
- DEF_ENDLIST
- DEF_METHOD
- public BorderLayout()
- // Constructs a new BorderLayout.
- //
- DEF_ENDLIST
- DEF_METHOD
- public BorderLayout(int hgap,
- int vgap)
- // Constructs a BorderLayout with the specified gaps.
- //
- // Parameters:
- // hgap - the horizontal gap
- // vgap - the vertical gap
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void addLayoutComponent(String name,
- Component comp)
- // Adds the specified named component to the layout.
- //
- // Parameters:
- // name - the String name
- // comp - the component to be added
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void removeLayoutComponent(Component comp)
- // Removes the specified component from the layout.
- //
- // Parameters:
- // comp - the component to be removed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension minimumLayoutSize(Container target)
- // Returns the minimum dimensions needed to layout the components
- // contained in the specified target container.
- //
- // Parameters:
- // target - the Container on which to do the layout
- // See Also:
- // Container, preferredLayoutSize
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension preferredLayoutSize(Container target)
- // Returns the preferred dimensions for this layout given the components
- // in the specified target container.
- //
- // Parameters:
- // target - the component which needs to be laid out
- // See Also:
- // Container, minimumLayoutSize
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void layoutContainer(Container target)
- // Lays out the specified container. This method will actually reshape the
- // components in the specified target container in order to satisfy the
- // constraints of the BorderLayout object.
- //
- // Parameters:
- // target - the component being laid out
- // See Also:
- // Container
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns the String representation of this BorderLayout's values.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Button
- DEF_SUPERCLASS
- Component
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
- Standard
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
- button.bmp
- DEF_THUMBNAIL_DOWN
- 2-button.bmp
- DEF_VISUAL
- DEF_TOOL
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A class that produces a labeled button component.
- DEF_ENDLIST
- DEF_METHOD
- public Button()
- // Constructs a Button with no label.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Button(String label)
- // Constructs a Button with a string label.
- //
- // Parameters:
- // label - the button label
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addNotify()
- // Creates the peer of the button. This peer allows us to
- // change the look of the button without changing its functionality.
- //
- // Overrides:
- // addNotify in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String getLabel()
- // Gets the label of the button.
- //
- // See Also:
- // setLabel
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setLabel(String label)
- // Sets the button with the specified label.
- //
- // Parameters:
- // label - the label to set the button with
- // See Also:
- // getLabel
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected String paramString()
- // Returns the parameter String of this button.
- //
- // Overrides:
- // paramString in class Component
- //
- //
- DEF_ENDLIST
- DEF_PROPERTY
- Label
- String
- setLabel(AVALUE);
- AVALUE = getLabel();
-
- DEF_ENDLIST
- DEF_PROPERTY
- Top
- int
- move(bounds().x, AVALUE);
- AVALUE = bounds().y;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Left
- int
- move(AVALUE, bounds().y);
- AVALUE = bounds().x;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Height
- int
- resize(bounds().width, AVALUE);
- AVALUE = bounds().height;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- Width
- int
- resize(AVALUE, bounds().height);
- AVALUE = bounds().width;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- ForegroundColor
- Color
- setForeground(AVALUE);
- AVALUE = getForeground();
- Color.black
- DEF_ENDLIST
- DEF_PROPERTY
- BackgroundColor
- Color
- setBackground(AVALUE);
- AVALUE = getBackground();
- Color.lightGray
- DEF_ENDLIST
- DEF_PROPERTY
- FontName
- String
- setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
- AVALUE = getFont().getName();
- Courier
- DEF_ENDLIST
- DEF_PROPERTY
- FontStyle
- int
- setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
- AVALUE = getFont().getStyle();
- Font.PLAIN
- DEF_ENDLIST
- DEF_PROPERTY
- FontSize
- int
- setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
- AVALUE = getFont().getSize();
- 10
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Canvas
- DEF_SUPERCLASS
- Component
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A Canvas component. This is a generic component which
- // needs to be subclassed in order to add some interesting
- // functionality.
- DEF_ENDLIST
- DEF_METHOD
- public Canvas()
- // Creates the peer of the canvas. This peer allows you to change the
- // user interface of the canvas without changing its functionality.
- //
- // Overrides:
- // addNotify in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void paint(Graphics g)
- // Paints the canvas in the default background color.
- //
- // Parameters:
- // g - the specified Graphics window
- // Overrides:
- // paint in class Component
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- CardLayout
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- LayoutManager
- DEF_ENDLIST
- DEF_DECLARATION
- // A layout manager for a container that contains several
- // 'cards'. Only one card is visible at a time,
- // allowing you to flip through the cards.
- DEF_ENDLIST
- DEF_METHOD
- public CardLayout()
- // Creates a new card layout.
- //
- DEF_ENDLIST
- DEF_METHOD
- public CardLayout(int hgap,
- int vgap)
- // Creates a card layout with the specified gaps.
- //
- // Parameters:
- // hgap - the horizontal gap
- // vgap - the vertical gap
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void addLayoutComponent(String name,
- Component comp)
- // Adds the specified component with the specified name to the layout.
- //
- // Parameters:
- // name - the name of the component
- // comp - the component to be added
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void removeLayoutComponent(Component comp)
- // Removes the specified component from the layout.
- //
- // Parameters:
- // comp - the component to be removed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension preferredLayoutSize(Container parent)
- // Calculates the preferred size for the specified panel.
- //
- // Parameters:
- // parent - the name of the parent container
- // Returns:
- // the dimensions of this panel.
- // See Also:
- // minimumLayoutSize
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension minimumLayoutSize(Container parent)
- // Calculates the minimum size for the specified panel.
- //
- // Parameters:
- // parent - the name of the parent container
- // Returns:
- // the dimensions of this panel.
- // See Also:
- // preferredLayoutSize
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void layoutContainer(Container parent)
- // Performs a layout in the specified panel.
- //
- // Parameters:
- // parent - the name of the parent container
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void first(Container parent)
- // Flip to the first card.
- //
- // Parameters:
- // parent - the name of the parent container
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void next(Container parent)
- // Flips to the next card of the specified container.
- //
- // Parameters:
- // parent - the name of the container
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void previous(Container parent)
- // Flips to the previous card of the specified container.
- //
- // Parameters:
- // parent - the name of the parent container
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void last(Container parent)
- // Flips to the last card of the specified container.
- //
- // Parameters:
- // parent - the name of the parent container
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void show(Container parent,
- String name)
- // Flips to the specified component name in the specified container.
- //
- // Parameters:
- // parent - the name of the parent container
- // name - the component name
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns the String representation of this CardLayout's values.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Checkbox
- DEF_SUPERCLASS
- Component
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_CATEGORY
- Standard
- DEF_THUMBNAIL_UP
- ncheck1.bmp
- DEF_THUMBNAIL_DOWN
- d-ncheck1.bmp
- DEF_BASE
- DEF_TOOL
- DEF_VISUAL
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A Checkbox object is a graphical user interface element that has a boolean
- // state.
- DEF_ENDLIST
- DEF_METHOD
- public Checkbox()
- // Constructs a Checkbox with no label, no Checkbox group, and initialized
- // to a false state.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Checkbox(String label)
- // Constructs a Checkbox with the specified label, no Checkbox group, and
- // initialized to a false state.
- //
- // Parameters:
- // label - the label on the Checkbox
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Checkbox(String label,
- CheckboxGroup group,
- boolean state)
- // Constructs a Checkbox with the specified label, specified Checkbox
- // group, and specified boolean state. If the specified CheckboxGroup
- // is not equal to null, then this Checkbox becomes a Checkbox button.
- // If the Checkbox becomes a button, this simply means that only
- // one Checkbox in a CheckboxGroup may be set at a time.
- //
- // Parameters:
- // label - the label on the Checkbox
- // group - the CheckboxGroup this Checkbox is in
- // state - is the initial state of this Checkbox
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addNotify()
- // Creates the peer of the Checkbox. The peer allows you to change the
- // look of the Checkbox without changing its functionality.
- //
- // Overrides:
- // addNotify in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String getLabel()
- // Gets the label of the button.
- //
- // See Also:
- // setLabel
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setLabel(String label)
- // Sets the button with the specified label.
- //
- // Parameters:
- // label - the label of the button
- // See Also:
- // getLabel
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean getState()
- // Returns the boolean state of the Checkbox.
- //
- // See Also:
- // setState
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setState(boolean state)
- // Sets the Checkbox to the specifed boolean state.
- //
- // Parameters:
- // state - the boolean state
- // See Also:
- // getState
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public CheckboxGroup getCheckboxGroup()
- // Returns the checkbox group.
- //
- // See Also:
- // setCheckboxGroup
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setCheckboxGroup(CheckboxGroup g)
- // Sets the CheckboxGroup to the specified group.
- //
- // Parameters:
- // g - the new CheckboxGroup
- // See Also:
- // getCheckboxGroup
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected String paramString()
- // Returns the parameter String of this Checkbox.
- //
- // Overrides:
- // paramString in class Component
- //
- //
- DEF_ENDLIST
- DEF_PROPERTY
- Label
- String
- setLabel(AVALUE);
- AVALUE = getLabel();
- ""
- DEF_ENDLIST
- DEF_PROPERTY
- State
- boolean
- setState(AVALUE);
- AVALUE = getState();
- false
- DEF_ENDLIST
- DEF_PROPERTY
- Top
- int
- move(bounds().x, AVALUE);
- AVALUE = bounds().y;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Left
- int
- move(AVALUE, bounds().y);
- AVALUE = bounds().x;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Height
- int
- resize(bounds().width, AVALUE);
- AVALUE = bounds().height;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- Width
- int
- resize(AVALUE, bounds().height);
- AVALUE = bounds().width;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- ForegroundColor
- Color
- setForeground(AVALUE);
- AVALUE = getForeground();
- Color.black
- DEF_ENDLIST
- DEF_PROPERTY
- BackgroundColor
- Color
- setBackground(AVALUE);
- AVALUE = getBackground();
- Color.lightGray
- DEF_ENDLIST
- DEF_PROPERTY
- FontName
- String
- setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
- AVALUE = getFont().getName();
- Courier
- DEF_ENDLIST
- DEF_PROPERTY
- FontStyle
- int
- setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
- AVALUE = getFont().getStyle();
- Font.PLAIN
- DEF_ENDLIST
- DEF_PROPERTY
- FontSize
- int
- setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
- AVALUE = getFont().getSize();
- 10
- DEF_ENDLIST
-
-
-
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- CheckboxGroup
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // This class is used to create a multiple-exclusion scope for a set
- // of Checkbox buttons. For example, creating a set of Checkbox buttons
- // with the same CheckboxGroup object means that only one of those Checkbox
- // buttons will be allowed to be "on" at a time.
- DEF_ENDLIST
- DEF_METHOD
- public CheckboxGroup()
- // Creates a new CheckboxGroup.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Checkbox getCurrent()
- // Gets the current choice.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void setCurrent(Checkbox box)
- // Sets the current choice to the specified Checkbox.
- // If the Checkbox belongs to a different group, just return.
- //
- // Parameters:
- // box - the current Checkbox choice
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns the String representation of this CheckboxGroup's values.
- // Convert to String.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- CheckboxMenuItem
- DEF_SUPERCLASS
- MenuItem
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // This class produces a checkbox that represents a choice in a menu.
- DEF_ENDLIST
- DEF_METHOD
- public CheckboxMenuItem(String label)
- // Creates the checkbox item with the specified label.
- //
- // Parameters:
- // label - the button label
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addNotify()
- // Creates the peer of the checkbox item. This peer allows us to
- // change the look of the checkbox item without changing its
- // functionality.
- //
- // Overrides:
- // addNotify in class MenuItem
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean getState()
- // Returns the state of this MenuItem. This method is only valid for a
- // Checkbox.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setState(boolean t)
- // Sets the state of this MenuItem if it is a Checkbox.
- //
- // Parameters:
- // t - the specified state of the checkbox
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String paramString()
- // Returns the parameter String of this button.
- //
- // Overrides:
- // paramString in class MenuItem
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Choice
- DEF_SUPERCLASS
- Component
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_CATEGORY
- Standard
- DEF_THUMBNAIL_UP
- list2.bmp
- DEF_THUMBNAIL_DOWN
- 2-list2.bmp
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // The Choice class is a pop-up menu of choices. The current choice is
- // displayed as the title of the menu.
- DEF_ENDLIST
- DEF_METHOD
- public Choice()
- // Constructs a new Choice.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addNotify()
- // Creates the Choice's peer. This peer allows us to change the look
- // of the Choice without changing its functionality.
- //
- // Overrides:
- // addNotify in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int countItems()
- // Returns the number of items in this Choice.
- //
- // See Also:
- // getItem
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String getItem(int index)
- // Returns the String at the specified index in the Choice.
- //
- // Parameters:
- // index - the index at which to begin
- // See Also:
- // countItems
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addItem(String item)
- // Adds an item to this Choice.
- //
- // Parameters:
- // item - the item to be added
- // Throws: NullPointerException
- // If the item's value is equal to null.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String getSelectedItem()
- // Returns a String representation of the current choice.
- //
- // See Also:
- // getSelectedIndex
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getSelectedIndex()
- // Returns the index of the currently selected item.
- //
- // See Also:
- // getSelectedItem
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void select(int pos)
- // Selects the item with the specified postion.
- //
- // Parameters:
- // pos - the choice item position
- // Throws: IllegalArgumentException
- // If the choice item position is
- // invalid.
- // See Also:
- // getSelectedItem, getSelectedIndex
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void select(String str)
- // Selects the item with the specified String.
- //
- // Parameters:
- // str - the specified String
- // See Also:
- // getSelectedItem, getSelectedIndex
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected String paramString()
- // Returns the parameter String of this Choice.
- //
- // Overrides:
- // paramString in class Component
- //
- //
- DEF_ENDLIST
- DEF_PROPERTY
- Top
- int
- move(bounds().x, AVALUE);
- AVALUE = bounds().y;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Left
- int
- move(AVALUE, bounds().y);
- AVALUE = bounds().x;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Height
- int
- resize(bounds().width, AVALUE);
- AVALUE = bounds().height;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- Width
- int
- resize(AVALUE, bounds().height);
- AVALUE = bounds().width;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- ForegroundColor
- Color
- setForeground(AVALUE);
- AVALUE = getForeground();
- Color.black
- DEF_ENDLIST
- DEF_PROPERTY
- BackgroundColor
- Color
- setBackground(AVALUE);
- AVALUE = getBackground();
- Color.gray
- DEF_ENDLIST
- DEF_PROPERTY
- FontName
- String
- setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
- AVALUE = getFont().getName();
- Courier
- DEF_ENDLIST
- DEF_PROPERTY
- FontStyle
- int
- setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
- AVALUE = getFont().getStyle();
- Font.PLAIN
- DEF_ENDLIST
- DEF_PROPERTY
- FontSize
- int
- setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
- AVALUE = getFont().getSize();
- 10
- DEF_ENDLIST
-
-
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Color
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A class to encapsulate RGB Colors.
- DEF_ENDLIST
- DEF_METHOD
- public Color(int r,
- int g,
- int b)
- // Creates a color with the specified red, green, and blue values in
- // the range (0 - 255). The actual color used in rendering will depend
- // on finding the best match given the color space available for a
- // given output device.
- //
- // Parameters:
- // r - the red component
- // g - the green component
- // b - the blue component
- // See Also:
- // getRed, getGreen, getBlue, getRGB
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Color(int rgb)
- // Creates a color with the specified combined RGB value consisting of
- // the red component in bits 16-23, the green component in bits 8-15,
- // and the blue component in bits 0-7. The actual color used in
- // rendering will depend on finding the best match given the color space
- // available for a given output device.
- //
- // Parameters:
- // rgb - the combined RGB components
- // See Also:
- // getRGBdefault, getRed, getGreen, getBlue, getRGB
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Color(float r,
- float g,
- float b)
- // Creates a color with the specified red, green, and blue values in the
- // range (0.0 - 1.0). The actual color
- // used in rendering will depend on finding the best match given the
- // color space available for a given output device.
- //
- // Parameters:
- // r - the red component
- // g - the red component
- // b - the red component
- // See Also:
- // getRed, getGreen, getBlue, getRGB
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getRed()
- // Gets the red component.
- //
- // See Also:
- // getRGB
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getGreen()
- // Gets the green component.
- //
- // See Also:
- // getRGB
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getBlue()
- // Gets the blue component.
- //
- // See Also:
- // getRGB
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getRGB()
- // Gets the RGB value representing the color in the default RGB ColorModel.
- // (Bits 24-31 are 0xff, 16-23 are red, 8-15 are green, 0-7 are blue).
- //
- // See Also:
- // getRGBdefault, getRed, getGreen, getBlue
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Color brighter()
- // Returns a brighter version of this color.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Color darker()
- // Returns a darker version of this color.
- //
- DEF_ENDLIST
- DEF_METHOD
- public int hashCode()
- // Computes the hash code.
- //
- // Overrides:
- // hashCode in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean equals(Object obj)
- // Compares this object against the specified object.
- //
- // Parameters:
- // obj - the object to compare with.
- // Returns:
- // true if the objects are the same; false otherwise.
- // Overrides:
- // equals in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns the String representation of this Color's values.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Color getColor(String nm)
- // Gets the specified Color property.
- //
- // Parameters:
- // nm - the name of the color property
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Color getColor(String nm,
- Color v)
- // Gets the specified Color property of the specified Color.
- //
- // Parameters:
- // nm - the name of the color property
- // v - the specified color
- // Returns:
- // the new color.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Color getColor(String nm,
- int v)
- // Gets the specified Color property of the color value.
- //
- // Parameters:
- // nm - the name of the color property
- // v - the color value
- // Returns:
- // the new color.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static int HSBtoRGB(float hue,
- float saturation,
- float brightness)
- // Returns the RGB value defined by the default RGB ColorModel, of
- // the color corresponding to the given HSB color components.
- //
- // Parameters:
- // hue - the hue component of the color
- // saturation - the saturation of the color
- // brightness - the brightness of the color
- // See Also:
- // getRGBdefault, getRGB
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static float[] RGBtoHSB(int r,
- int g,
- int b,
- float hsbvals[])
- // Returns the HSB values corresponding to the color defined by the
- // red, green, and blue components.
- //
- // Parameters:
- // r - the red component of the color
- // g - the green component of the color
- // b - the blue component of the color
- // hsbvals - the array to be used to return the 3 HSB values, or null
- // Returns:
- // the array used to store the results [hue, saturation, brightness]
- // See Also:
- // getRGBdefault, getRGB
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Color getHSBColor(float h,
- float s,
- float b)
- // A static Color factory for generating a Color object from HSB
- // values.
- //
- // Parameters:
- // h - the hue component
- // s - the saturation of the color
- // b - the brightness of the color
- // Returns:
- // the Color object for the corresponding RGB color
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Component
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- ImageObserver
- DEF_ENDLIST
- DEF_DECLARATION
- // A generic Abstract Window Toolkit component.
- DEF_ENDLIST
- DEF_EVENT
- public void deliverEvent(Event e)
- // Delivers an event to this component or one of its sub components.
- //
- // Parameters:
- // e - the event
- // See Also:
- // handleEvent, postEvent
- //
- //
- DEF_ENDLIST
- DEF_EVENT
- public boolean postEvent(Event e)
- // Posts an event to this component. This will result in a call
- // to handleEvent. If handleEvent returns false the event is
- // passed on to the parent of this component.
- //
- // Parameters:
- // e - the event
- // See Also:
- // handleEvent, deliverEvent
- //
- //
- DEF_ENDLIST
- DEF_EVENT
- public boolean handleEvent(Event evt)
- // Handles the event. Returns true if the event is handled and
- // should not be passed to the parent of this component. The default
- // event handler calls some helper methods to make life easier
- // on the programmer.
- //
- // Parameters:
- // evt - the event
- // See Also:
- // mouseEnter, mouseExit, mouseMove, mouseDown, mouseDrag, mouseUp, keyDown, action
- //
- //
- DEF_ENDLIST
- DEF_EVENT
- public boolean mouseDown(Event evt,
- int x,
- int y)
- // Called if the mouse is down.
- //
- // Parameters:
- // evt - the event
- // x - the x coordinate
- // y - the y coordinate
- // See Also:
- // handleEvent
- //
- //
- DEF_ENDLIST
- DEF_EVENT
- public boolean mouseDrag(Event evt,
- int x,
- int y)
- // Called if the mouse is dragged (the mouse button is down).
- //
- // Parameters:
- // evt - the event
- // x - the x coordinate
- // y - the y coordinate
- // See Also:
- // handleEvent
- //
- //
- DEF_ENDLIST
- DEF_EVENT
- public boolean mouseUp(Event evt,
- int x,
- int y)
- // Called if the mouse is up.
- //
- // Parameters:
- // evt - the event
- // x - the x coordinate
- // y - the y coordinate
- // See Also:
- // handleEvent
- //
- //
- DEF_ENDLIST
- DEF_EVENT
- public boolean mouseMove(Event evt,
- int x,
- int y)
- // Called if the mouse moves (the mouse button is up).
- //
- // Parameters:
- // evt - the event
- // x - the x coordinate
- // y - the y coordinate
- // See Also:
- // handleEvent
- //
- //
- DEF_ENDLIST
- DEF_EVENT
- public boolean mouseEnter(Event evt,
- int x,
- int y)
- // Called when the mouse enters the component.
- //
- // Parameters:
- // evt - the event
- // x - the x coordinate
- // y - the y coordinate
- // See Also:
- // handleEvent
- //
- //
- DEF_ENDLIST
- DEF_EVENT
- public boolean mouseExit(Event evt,
- int x,
- int y)
- // Called when the mouse exits the component.
- //
- // Parameters:
- // evt - the event
- // x - the x coordinate
- // y - the y coordinate
- // See Also:
- // handleEvent
- //
- //
- DEF_ENDLIST
- DEF_EVENT
- public boolean keyDown(Event evt,
- int key)
- // Called if a character is pressed.
- //
- // Parameters:
- // evt - the event
- // key - the key that's pressed
- // See Also:
- // handleEvent
- //
- //
- DEF_ENDLIST
- DEF_EVENT
- public boolean keyUp(Event evt,
- int key)
- // Called if a character is released.
- //
- // Parameters:
- // evt - the event
- // key - the key that's released
- // See Also:
- // handleEvent
- //
- //
- DEF_ENDLIST
- DEF_EVENT
- public boolean action(Event evt,
- Object what)
- // Called if an action occurs in the Component.
- //
- // Parameters:
- // evt - the event
- // what - the action that's occuring
- // See Also:
- // handleEvent
- //
- //
- DEF_ENDLIST
- DEF_EVENT
- public boolean gotFocus(Event evt,
- Object what)
- // Indicates that this component has received the input focus.
- //
- // See Also:
- // requestFocus, lostFocus
- //
- //
- DEF_ENDLIST
- DEF_EVENT
- public boolean lostFocus(Event evt,
- Object what)
- // Indicates that this component has lost the input focus.
- //
- // See Also:
- // requestFocus, gotFocus
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Container getParent()
- // Gets the parent of the component.
- //
- DEF_ENDLIST
- DEF_METHOD
- public ComponentPeer getPeer()
- // Gets the peer of the component.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Toolkit getToolkit()
- // Gets the toolkit of the component. This toolkit is
- // used to create the peer for this component. Note that
- // the Frame which contains a Component controls which
- // toolkit is used so if the Component has not yet been
- // added to a Frame or if it is later moved to a different
- // Frame, the toolkit it uses may change.
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean isValid()
- // Checks if this Component is valid. Components are invalidated when
- // they are first shown on the screen.
- //
- // See Also:
- // validate, invalidate
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean isVisible()
- // Checks if this Component is visible. Components are initially visible
- // (with the exception of top level components such as Frame).
- //
- // See Also:
- // show, hide
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean isShowing()
- // Checks if this Component is showing on screen. This means that the
- // component must be visible, and it must be in a container that is
- // visible and showing.
- //
- // See Also:
- // show, hide
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean isEnabled()
- // Checks if this Component is enabled. Components are initially enabled.
- //
- // See Also:
- // enable, disable
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Point location()
- // Returns the current location of this component.
- // The location will be in the parent's coordinate space.
- //
- // See Also:
- // move
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension size()
- // Returns the current size of this component.
- //
- // See Also:
- // resize
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Rectangle bounds()
- // Returns the current bounds of this component.
- //
- // See Also:
- // reshape
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void enable()
- // Enables a component.
- //
- // See Also:
- // isEnabled, disable
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void enable(boolean cond)
- // Conditionally enables a component.
- //
- // Parameters:
- // cond - if true, enables component; disables otherwise.
- // See Also:
- // enable, disable
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void disable()
- // Disables a component.
- //
- // See Also:
- // isEnabled, enable
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void show()
- // Shows the component.
- //
- // See Also:
- // isVisible, hide
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void show(boolean cond)
- // Conditionally shows the component.
- //
- // Parameters:
- // cond - if true, it shows the component; hides otherwise.
- // See Also:
- // show, hide
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void hide()
- // Hides the component.
- //
- // See Also:
- // isVisible, hide
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Color getForeground()
- // Gets the foreground color. If the component does
- // not have a foreground color, the foreground color
- // of its parent is returned.
- //
- // See Also:
- // setForeground
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void setForeground(Color c)
- // Sets the foreground color.
- //
- // Parameters:
- // c - the Color
- // See Also:
- // getForeground
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Color getBackground()
- // Gets the background color. If the component does
- // not have a background color, the background color
- // of its parent is returned.
- //
- // See Also:
- // setBackground
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void setBackground(Color c)
- // Sets the background color.
- //
- // Parameters:
- // c - the Color
- // See Also:
- // getBackground
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Font getFont()
- // Gets the font of the component. If the component does
- // not have a font, the font of its parent is returned.
- //
- // See Also:
- // setFont
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void setFont(Font f)
- // Sets the font of the component.
- //
- // Parameters:
- // f - the font
- // See Also:
- // getFont
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized ColorModel getColorModel()
- // Gets the ColorModel used to display the component on the output device.
- //
- // See Also:
- // ColorModel
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void move(int x,
- int y)
- // Moves the Component to a new location. The x and y coordinates
- // are in the parent's coordinate space.
- //
- // Parameters:
- // x - the x coordinate
- // y - the y coordinate
- // See Also:
- // location, reshape
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void resize(int width,
- int height)
- // Resizes the Component to the specified width and height.
- //
- // Parameters:
- // width - the width of the component
- // height - the height of the component
- // See Also:
- // size, reshape
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void resize(Dimension d)
- // Resizes the Component to the specified dimension.
- //
- // Parameters:
- // d - the component dimension
- // See Also:
- // size, reshape
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void reshape(int x,
- int y,
- int width,
- int height)
- // Reshapes the Component to the specified bounding box.
- //
- // Parameters:
- // x - the x coordinate
- // y - the y coordinate
- // width - the width of the component
- // height - the height of the component
- // See Also:
- // bounds, move, resize
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension preferredSize()
- // Returns the preferred size of this component.
- //
- // See Also:
- // minimumSize, LayoutManager
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension minimumSize()
- // Returns the minimum size of this component.
- //
- // See Also:
- // preferredSize, LayoutManager
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void layout()
- // Lays out the component. This is usually called when the
- // component is validated.
- //
- // See Also:
- // validate, LayoutManager
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void validate()
- // Validates a component.
- //
- // See Also:
- // invalidate, layout, LayoutManager
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void invalidate()
- // Invalidates a component.
- //
- // See Also:
- // validate, layout, LayoutManager
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Graphics getGraphics()
- // Gets a Graphics context for this component. This method will
- // return null if the component is currently not on the screen.
- //
- // See Also:
- // paint
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public FontMetrics getFontMetrics(Font font)
- // Gets the font metrics for this component. This will
- // return null if the component is currently not on the screen.
- //
- // Parameters:
- // font - the font
- // See Also:
- // getFont
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void paint(Graphics g)
- // Paints the component.
- //
- // Parameters:
- // g - the specified Graphics window
- // See Also:
- // update
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void update(Graphics g)
- // Updates the component. This method is called in
- // response to a call to repaint. You can assume that
- // the background is not cleared.
- //
- // Parameters:
- // g - the specified Graphics window
- // See Also:
- // paint, repaint
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void paintAll(Graphics g)
- // Paints the component and its subcomponents.
- //
- // Parameters:
- // g - the specified Graphics window
- // See Also:
- // paint
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void repaint()
- // Repaints the component. This will result in a
- // call to update as soon as possible.
- //
- // See Also:
- // paint
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void repaint(long tm)
- // Repaints the component. This will result in a
- // call to update within tm milliseconds.
- //
- // Parameters:
- // tm - maximum time in milliseconds before update
- // See Also:
- // paint
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void repaint(int x,
- int y,
- int width,
- int height)
- // Repaints part of the component. This will result in a
- // call to update as soon as possible.
- //
- // Parameters:
- // x - the x coordinate
- // y - the y coordinate
- // width - the width
- // height - the height
- // See Also:
- // repaint
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void repaint(long tm,
- int x,
- int y,
- int width,
- int height)
- // Repaints part of the component. This will result in a
- // call to update width tm millseconds.
- //
- // Parameters:
- // tm - maximum time in milliseconds before update
- // x - the x coordinate
- // y - the y coordinate
- // width - the width
- // height - the height
- // See Also:
- // repaint
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void print(Graphics g)
- // Prints this component. The default implementation of this
- // method calls paint.
- //
- // Parameters:
- // g - the specified Graphics window
- // See Also:
- // paint
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void printAll(Graphics g)
- // Prints the component and its subcomponents.
- //
- // Parameters:
- // g - the specified Graphics window
- // See Also:
- // print
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean imageUpdate(Image img,
- int flags,
- int x,
- int y,
- int w,
- int h)
- // Repaints the component when the image has changed.
- //
- // Returns:
- // true if image has changed; false otherwise.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Image createImage(ImageProducer producer)
- // Creates an image from the specified image producer.
- //
- // Parameters:
- // producer - the image producer
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Image createImage(int width,
- int height)
- // Creates an off-screen drawable Image to be used for double buffering.
- //
- // Parameters:
- // width - the specified width
- // height - the specified height
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean prepareImage(Image image,
- ImageObserver observer)
- // Prepares an image for rendering on this Component. The image
- // data is downloaded asynchronously in another thread and the
- // appropriate screen representation of the image is generated.
- //
- // Parameters:
- // image - the Image to prepare a screen representation for
- // observer - the ImageObserver object to be notified as the
- // image is being prepared
- // Returns:
- // true if the image has already been fully prepared
- // See Also:
- // ImageObserver
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean prepareImage(Image image,
- int width,
- int height,
- ImageObserver observer)
- // Prepares an image for rendering on this Component at the
- // specified width and height. The image data is downloaded
- // asynchronously in another thread and an appropriately scaled
- // screen representation of the image is generated.
- //
- // Parameters:
- // image - the Image to prepare a screen representation for
- // width - the width of the desired screen representation
- // height - the height of the desired screen representation
- // observer - the ImageObserver object to be notified as the
- // image is being prepared
- // Returns:
- // true if the image has already been fully prepared
- // See Also:
- // ImageObserver
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int checkImage(Image image,
- ImageObserver observer)
- // Returns the status of the construction of a screen representation
- // of the specified image.
- // This method does not cause the image to begin loading. Use the
- // prepareImage method to force the loading of an image.
- //
- // Parameters:
- // image - the Image to check the status of
- // observer - the ImageObserver object to be notified as the
- // image is being prepared
- // Returns:
- // the boolean OR of the ImageObserver flags for the
- // data that is currently available
- // See Also:
- // ImageObserver, prepareImage
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int checkImage(Image image,
- int width,
- int height,
- ImageObserver observer)
- // Returns the status of the construction of a scaled screen
- // representation of the specified image.
- // This method does not cause the image to begin loading, use the
- // prepareImage method to force the loading of an image.
- //
- // Parameters:
- // image - the Image to check the status of
- // width - the width of the scaled version to check the status of
- // height - the height of the scaled version to check the status of
- // observer - the ImageObserver object to be notified as the
- // image is being prepared
- // Returns:
- // the boolean OR of the ImageObserver flags for the
- // data that is currently available
- // See Also:
- // ImageObserver, prepareImage
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized boolean inside(int x,
- int y)
- // Checks whether a specified x,y location is "inside" this
- // Component. By default, x and y are inside an Component if
- // they fall within the bounding box of that Component.
- //
- // Parameters:
- // x - the x coordinate
- // y - the y coordinate
- // See Also:
- // locate
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Component locate(int x,
- int y)
- // Returns the component or subcomponent that contains the x,y location.
- //
- // Parameters:
- // x - the x coordinate
- // y - the y coordinate
- // See Also:
- // inside
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void addNotify()
- // Notifies the Component to create a peer.
- //
- // See Also:
- // getPeer, removeNotify
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void removeNotify()
- // Notifies the Component to destroy the peer.
- //
- // See Also:
- // getPeer, addNotify
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void requestFocus()
- // Requests the input focus. The gotFocus() method will be called
- // if this method is successful.
- //
- // See Also:
- // gotFocus
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void nextFocus()
- // Moves the focus to the next component.
- //
- // See Also:
- // requestFocus, gotFocus
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected String paramString()
- // Returns the parameter String of this Component.
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns the String representation of this Component's values.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void list()
- // Prints a listing to a print stream.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void list(PrintStream out)
- // Prints a listing to the specified print out stream.
- //
- // Parameters:
- // out - the Stream name
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void list(PrintStream out,
- int indent)
- // Prints out a list, starting at the specified indention, to the specified
- // print stream.
- //
- // Parameters:
- // out - the Stream name
- // indent - the start of the list
- //
- //
- DEF_ENDLIST
- DEF_PROPERTY
- Top
- int
- move(bounds().x, AVALUE);
- AVALUE = bounds().y;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Left
- int
- move(AVALUE, bounds().y);
- AVALUE = bounds().x;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Height
- int
- resize(bounds().width, AVALUE);
- AVALUE = bounds().height;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- Width
- int
- resize(AVALUE, bounds().height);
- AVALUE = bounds().width;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- ForegroundColor
- Color
- setForeground(AVALUE);
- AVALUE = getForeground();
- Color.black
- DEF_ENDLIST
- DEF_PROPERTY
- BackgroundColor
- Color
- setBackground(AVALUE);
- AVALUE = getBackground();
- Color.gray
- DEF_ENDLIST
- DEF_PROPERTY
- FontName
- String
- setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
- AVALUE = getFont().getName();
- Courier
- DEF_ENDLIST
- DEF_PROPERTY
- FontStyle
- int
- setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
- AVALUE = getFont().getStyle();
- Font.PLAIN
- DEF_ENDLIST
- DEF_PROPERTY
- FontSize
- int
- setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
- AVALUE = getFont().getSize();
- 10
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Container
- DEF_SUPERCLASS
- Component
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A generic Abstract Window Toolkit(AWT) container object is a component
- // that can contain other AWT components.
- DEF_ENDLIST
- DEF_EVENT
- public void deliverEvent(Event e)
- // Delivers an event. The appropriate component is located and
- // the event is delivered to it.
- //
- // Parameters:
- // e - the event
- // Overrides:
- // deliverEvent in class Component
- // See Also:
- // handleEvent, postEvent
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int countComponents()
- // Returns the number of components in this panel.
- //
- // See Also:
- // getComponent
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized Component getComponent(int n)
- // Gets the nth component in this container.
- //
- // Parameters:
- // n - the number of the component to get
- // Throws: ArrayIndexOutOfBoundsException
- // If the nth value does not
- // exist.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized Component[] getComponents()
- // Gets all the components in this container.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Insets insets()
- // Returns the insets of the container. The insets indicate the size of
- // the border of the container. A Frame, for example, will have a top inset
- // that corresponds to the height of the Frame's title bar.
- //
- // See Also:
- // LayoutManager
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Component add(Component comp)
- // Adds the specified component to this container.
- //
- // Parameters:
- // comp - the component to be added
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized Component add(Component comp,
- int pos)
- // Adds the specified component to this container at the given position.
- //
- // Parameters:
- // comp - the component to be added
- // pos - the position at which to insert the component. -1
- // means insert at the end.
- // See Also:
- // remove
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized Component add(String name,
- Component comp)
- // Adds the specified component to this container. The component
- // is also added to the layout manager of this container using the
- // name specified
- // .
- //
- // Parameters:
- // name - the component name
- // comp - the component to be added
- // See Also:
- // remove, LayoutManager
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void remove(Component comp)
- // Removes the specified component from this container.
- //
- // Parameters:
- // comp - the component to be removed
- // See Also:
- // add
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void removeAll()
- // Removes all the components from this container.
- //
- // See Also:
- // add, remove
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public LayoutManager getLayout()
- // Gets the layout manager for this container.
- //
- // See Also:
- // layout, setLayout
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setLayout(LayoutManager mgr)
- // Sets the layout manager for this container.
- //
- // Parameters:
- // mgr - the specified layout manager
- // See Also:
- // layout, getLayout
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void layout()
- // Does a layout on this Container.
- //
- // Overrides:
- // layout in class Component
- // See Also:
- // setLayout
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void validate()
- // Validates this Container and all of the components contained within it.
- //
- // Overrides:
- // validate in class Component
- // See Also:
- // validate, invalidate
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized Dimension preferredSize()
- // Returns the preferred size of this container.
- //
- // Overrides:
- // preferredSize in class Component
- // See Also:
- // minimumSize
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized Dimension minimumSize()
- // Returns the minimum size of this container.
- //
- // Overrides:
- // minimumSize in class Component
- // See Also:
- // preferredSize
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void paintComponents(Graphics g)
- // Paints the components in this container.
- //
- // Parameters:
- // g - the specified Graphics window
- // See Also:
- // paint, paintAll
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void printComponents(Graphics g)
- // Prints the components in this container.
- //
- // Parameters:
- // g - the specified Graphics window
- // See Also:
- // print, printAll
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Component locate(int x,
- int y)
- // Locates the component that contains the x,y position.
- //
- // Parameters:
- // x - the x coordinate
- // y - the y coordinate
- // Returns:
- // null if the component is not within the x and y
- // coordinates; returns the component otherwise.
- // Overrides:
- // locate in class Component
- // See Also:
- // inside
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addNotify()
- // Notifies the container to create a peer. It will also
- // notify the components contained in this container.
- //
- // Overrides:
- // addNotify in class Component
- // See Also:
- // removeNotify
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void removeNotify()
- // Notifies the container to remove its peer. It will
- // also notify the components contained in this container.
- //
- // Overrides:
- // removeNotify in class Component
- // See Also:
- // addNotify
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected String paramString()
- // Returns the parameter String of this Container.
- //
- // Overrides:
- // paramString in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void list(PrintStream out,
- int indent)
- // Prints out a list, starting at the specified indention, to the specified
- // out stream.
- //
- // Parameters:
- // out - the Stream name
- // indent - the start of the list
- // Overrides:
- // list in class Component
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- ColorModel
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- image
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A class that encapsulates the methods for translating from pixel values
- // to alpha, red, green, and blue color components for an image. This
- // class is abstract.
- //
- // See Also:
- // IndexColorModel, DirectColorModel
- //
- DEF_ENDLIST
- DEF_METHOD
- public static ColorModel getRGBdefault()
- // Return a ColorModel which describes the default format for
- // integer RGB values used throughout the AWT image interfaces.
- // The format for the RGB values is an integer with 8 bits
- // each of alpha, red, green, and blue color components ordered
- // correspondingly from the most significant byte to the least
- // significant byte, as in: 0xAARRGGBB
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getPixelSize()
- // Returns the number of bits per pixel described by this ColorModel.
- //
- DEF_ENDLIST
- DEF_METHOD
- public abstract int getRed(int pixel)
- // The subclass must provide a function which provides the red
- // color compoment for the specified pixel.
- //
- // Returns:
- // The red color component ranging from 0 to 255
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public abstract int getGreen(int pixel)
- // The subclass must provide a function which provides the green
- // color compoment for the specified pixel.
- //
- // Returns:
- // The green color component ranging from 0 to 255
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public abstract int getBlue(int pixel)
- // The subclass must provide a function which provides the blue
- // color compoment for the specified pixel.
- //
- // Returns:
- // The blue color component ranging from 0 to 255
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public abstract int getAlpha(int pixel)
- // The subclass must provide a function which provides the alpha
- // color compoment for the specified pixel.
- //
- // Returns:
- // The alpha transparency value ranging from 0 to 255
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getRGB(int pixel)
- // Returns the color of the pixel in the default RGB color model.
- //
- // See Also:
- // getRGBdefault
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Label
- DEF_SUPERCLASS
- Component
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
- Standard
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
- nlabel.bmp
- DEF_THUMBNAIL_DOWN
- d-nlabel.bmp
- DEF_VISUAL
- DEF_TOOL
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A component that displays a single line of read-only text.
- DEF_ENDLIST
- DEF_METHOD
- public Label()
- // Constructs an empty label.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Label(String label)
- // Constructs a new label with the specified String of text.
- //
- // Parameters:
- // label - the text that makes up the label
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Label(String label,
- int alignment)
- // Constructs a new label with the specified String of
- // text and the specified alignment.
- //
- // Parameters:
- // label - the String that makes up the label
- // alignment - the alignment value
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addNotify()
- // Creates the peer for this label. The peer allows us to
- // modify the appearance of the label without changing its
- // functionality.
- //
- // Overrides:
- // addNotify in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getAlignment()
- // Gets the current alignment of this label.
- //
- // See Also:
- // setAlignment
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setAlignment(int alignment)
- // Sets the alignment for this label to the specified
- // alignment.
- //
- // Parameters:
- // alignment - the alignment value
- // Throws: IllegalArgumentException
- // If an improper alignment was given.
- // See Also:
- // getAlignment
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String getText()
- // Gets the text of this label.
- //
- // See Also:
- // setText
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setText(String label)
- // Sets the text for this label to the specified text.
- //
- // Parameters:
- // label - the text that makes up the label
- // See Also:
- // getText
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected String paramString()
- // Returns the parameter String of this label.
- //
- // Overrides:
- // paramString in class Component
- //
- //
- DEF_ENDLIST
- DEF_PROPERTY
- Text
- String
- setText(AVALUE);
- AVALUE = getText();
- Label
- DEF_ENDLIST
- DEF_PROPERTY
- Alignment
- int
- setAlignment(AVALUE);
- AVALUE = getAlignment();
- Label.LEFT
- DEF_ENDLIST
- DEF_PROPERTY
- Top
- int
- move(bounds().x, AVALUE);
- AVALUE = bounds().y;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Left
- int
- move(AVALUE, bounds().y);
- AVALUE = bounds().x;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Height
- int
- resize(bounds().width, AVALUE);
- AVALUE = bounds().height;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- Width
- int
- resize(AVALUE, bounds().height);
- AVALUE = bounds().width;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- ForegroundColor
- Color
- setForeground(AVALUE);
- AVALUE = getForeground();
- Color.black
- DEF_ENDLIST
- DEF_PROPERTY
- BackgroundColor
- Color
- setBackground(AVALUE);
- AVALUE = getBackground();
- Color.lightGray
- DEF_ENDLIST
- DEF_PROPERTY
- FontName
- String
- setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
- AVALUE = getFont().getName();
- Courier
- DEF_ENDLIST
- DEF_PROPERTY
- FontStyle
- int
- setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
- AVALUE = getFont().getStyle();
- Font.PLAIN
- DEF_ENDLIST
- DEF_PROPERTY
- FontSize
- int
- setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
- AVALUE = getFont().getSize();
- 10
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Panel
- DEF_SUPERCLASS
- Container
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
- Standard
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
- npanel.bmp
- DEF_THUMBNAIL_DOWN
- d-npanel.bmp
- DEF_VISUAL
- DEF_TOOL
- DEF_BASE
- DEF_PANEL
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A Panel Container class. This produces a generic container.
- DEF_ENDLIST
- DEF_METHOD
- public Panel()
- // Creates a new panel. The default layout for all panels is
- // FlowLayout.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addNotify()
- // Creates the Panel's peer. The peer allows you to modify the
- // appearance of the panel without changing its functionality.
- //
- // Overrides:
- // addNotify in class Container
- //
- //
- DEF_ENDLIST
- DEF_PROPERTY
- Top
- int
- move(bounds().x, AVALUE);
- AVALUE = bounds().y;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Left
- int
- move(AVALUE, bounds().y);
- AVALUE = bounds().x;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Height
- int
- resize(bounds().width, AVALUE);
- AVALUE = bounds().height;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- Width
- int
- resize(AVALUE, bounds().height);
- AVALUE = bounds().width;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- ForegroundColor
- Color
- setForeground(AVALUE);
- AVALUE = getForeground();
- Color.black
- DEF_ENDLIST
- DEF_PROPERTY
- BackgroundColor
- Color
- setBackground(AVALUE);
- AVALUE = getBackground();
- Color.lightGray
- DEF_ENDLIST
- DEF_PROPERTY
- FontName
- String
- setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
- AVALUE = getFont().getName();
- Courier
- DEF_ENDLIST
- DEF_PROPERTY
- FontStyle
- int
- setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
- AVALUE = getFont().getStyle();
- Font.PLAIN
- DEF_ENDLIST
- DEF_PROPERTY
- FontSize
- int
- setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
- AVALUE = getFont().getSize();
- 10
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- TextArea
- DEF_SUPERCLASS
- TextComponent
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
- Standard
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
- nmemo.bmp
- DEF_THUMBNAIL_DOWN
- d-nmemo.bmp
- DEF_VISUAL
- DEF_TOOL
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A TextArea object is a multi-line area that displays text. It can
- // be set to allow editing or read-only modes.
- DEF_ENDLIST
- DEF_METHOD
- public TextArea()
- // Constructs a new TextArea.
- //
- DEF_ENDLIST
- DEF_METHOD
- public TextArea(int rows,
- int cols)
- // Constructs a new TextArea with the specified number of rows and columns.
- //
- // Parameters:
- // rows - the number of rows
- // cols - the number of columns
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public TextArea(String text)
- // Constructs a new TextArea with the specified text displayed.
- //
- // Parameters:
- // text - the text to be displayed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public TextArea(String text,
- int rows,
- int cols)
- // Constructs a new TextArea with the specified text and number of rows
- // and columns.
- //
- // Parameters:
- // text - the text to be displayed
- // rows - the number of rows
- // cols - the number of cols
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addNotify()
- // Creates the TextArea's peer. The peer allows us to modify the appearance of
- // the TextArea without changing any of its functionality.
- //
- // Overrides:
- // addNotify in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void insertText(String str,
- int pos)
- // Inserts the specified text at the specified position.
- //
- // Parameters:
- // str - the text to insert.
- // pos - the position at which to insert.
- // See Also:
- // setText, replaceText
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void appendText(String str)
- // Appends the given text to the end.
- //
- // Parameters:
- // str - the text to insert
- // See Also:
- // insertText
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void replaceText(String str,
- int start,
- int end)
- // Replaces text from the indicated start to end position with the
- // new text specified.
- //
- // Parameters:
- // str - the text to use as the replacement.
- // start - the start position.
- // end - the end position.
- // See Also:
- // insertText, replaceText
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getRows()
- // Returns the number of rows in the TextArea.
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getColumns()
- // Returns the number of columns in the TextArea.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension preferredSize(int rows,
- int cols)
- // Returns the specified row and column Dimensions of the TextArea.
- //
- // Parameters:
- // rows - the preferred rows amount
- // cols - the preferred columns amount
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension preferredSize()
- // Returns the preferred size Dimensions of the TextArea.
- //
- // Overrides:
- // preferredSize in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension minimumSize(int rows,
- int cols)
- // Returns the specified minimum size Dimensions of the TextArea.
- //
- // Parameters:
- // rows - the minimum row size
- // cols - the minimum column size
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension minimumSize()
- // Returns the minimum size Dimensions of the TextArea.
- //
- // Overrides:
- // minimumSize in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected String paramString()
- // Returns the String of parameters for this TextArea.
- //
- // Overrides:
- // paramString in class TextComponent
- //
- //
- DEF_ENDLIST
- DEF_PROPERTY
- Top
- int
- move(bounds().x, AVALUE);
- AVALUE = bounds().y;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Left
- int
- move(AVALUE, bounds().y);
- AVALUE = bounds().x;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Height
- int
- resize(bounds().width, AVALUE);
- AVALUE = bounds().height;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- Width
- int
- resize(AVALUE, bounds().height);
- AVALUE = bounds().width;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- ForegroundColor
- Color
- setForeground(AVALUE);
- AVALUE = getForeground();
- Color.black
- DEF_ENDLIST
- DEF_PROPERTY
- BackgroundColor
- Color
- setBackground(AVALUE);
- AVALUE = getBackground();
- Color.white
- DEF_ENDLIST
- DEF_PROPERTY
- FontName
- String
- setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
- AVALUE = getFont().getName();
- Courier
- DEF_ENDLIST
- DEF_PROPERTY
- FontStyle
- int
- setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
- AVALUE = getFont().getStyle();
- Font.PLAIN
- DEF_ENDLIST
- DEF_PROPERTY
- FontSize
- int
- setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
- AVALUE = getFont().getSize();
- 10
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- TextField
- DEF_SUPERCLASS
- TextComponent
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- awt
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
- Standard
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
- ntex-ed.bmp
- DEF_THUMBNAIL_DOWN
- d-ntex-ed.bmp
- DEF_VISUAL
- DEF_TOOL
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // TextField is a component that allows the editing of a single line of text.
- DEF_ENDLIST
- DEF_METHOD
- public TextField()
- // Constructs a new TextField.
- //
- DEF_ENDLIST
- DEF_METHOD
- public TextField(int cols)
- // Constructs a new TextField initialized with the specified columns.
- //
- // Parameters:
- // cols - the number of columns
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public TextField(String text)
- // Constructs a new TextField initialized with the specified text.
- //
- // Parameters:
- // text - the text to be displayed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public TextField(String text,
- int cols)
- // Constructs a new TextField initialized with the specified text and columns.
- //
- // Parameters:
- // text - the text to be displayed
- // cols - the number of columns
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void addNotify()
- // Creates the TextField's peer. The peer allows us to modify the appearance of
- // the TextField without changing its functionality.
- //
- // Overrides:
- // addNotify in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public char getEchoChar()
- // Returns the character to be used for echoing.
- //
- // See Also:
- // setEchoCharacter, echoCharIsSet
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean echoCharIsSet()
- // Returns true if this TextField has a character set for
- // echoing.
- //
- // See Also:
- // setEchoCharacter, getEchoChar
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int getColumns()
- // Returns the number of columns in this TextField.
- //
- DEF_ENDLIST
- DEF_METHOD
- public void setEchoCharacter(char c)
- // Sets the echo character for this TextField. This is useful
- // for fields where the user input shouldn't be echoed to the screen,
- // as in the case of a TextField that represents a password.
- //
- // Parameters:
- // c - the echo character for this TextField
- // See Also:
- // echoCharIsSet, getEchoChar
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension preferredSize(int cols)
- // Returns the preferred size Dimensions needed for this TextField with the
- // specified amount of columns.
- //
- // Parameters:
- // cols - the number of columns in this TextField
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension preferredSize()
- // Returns the preferred size Dimensions needed for this TextField.
- //
- // Overrides:
- // preferredSize in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension minimumSize(int cols)
- // Returns the minimum size Dimensions needed for this TextField with the specified
- // amount of columns.
- //
- // Parameters:
- // cols - the number of columns in this TextField
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Dimension minimumSize()
- // Returns the minimum size Dimensions needed for this TextField.
- //
- // Overrides:
- // minimumSize in class Component
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected String paramString()
- // Returns the String of parameters for this TExtField.
- //
- // Overrides:
- // paramString in class TextComponent
- //
- //
- DEF_ENDLIST
- DEF_PROPERTY
- Top
- int
- move(bounds().x, AVALUE);
- AVALUE = bounds().y;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Left
- int
- move(AVALUE, bounds().y);
- AVALUE = bounds().x;
- 0
- DEF_ENDLIST
- DEF_PROPERTY
- Height
- int
- resize(bounds().width, AVALUE);
- AVALUE = bounds().height;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- Width
- int
- resize(AVALUE, bounds().height);
- AVALUE = bounds().width;
- 100
- DEF_ENDLIST
- DEF_PROPERTY
- ForegroundColor
- Color
- setForeground(AVALUE);
- AVALUE = getForeground();
- Color.black
- DEF_ENDLIST
- DEF_PROPERTY
- BackgroundColor
- Color
- setBackground(AVALUE);
- AVALUE = getBackground();
- Color.white
- DEF_ENDLIST
- DEF_PROPERTY
- FontName
- String
- setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
- AVALUE = getFont().getName();
- Courier
- DEF_ENDLIST
- DEF_PROPERTY
- FontStyle
- int
- setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
- AVALUE = getFont().getStyle();
- Font.PLAIN
- DEF_ENDLIST
- DEF_PROPERTY
- FontSize
- int
- setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
- AVALUE = getFont().getSize();
- 10
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- BufferedInputStream
- DEF_SUPERCLASS
- FilterInputStream
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- io
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.io.BufferedInputStream
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A buffered input stream. This stream lets you read in characters
- // from a stream without causing a read every time. The data
- // is read into a buffer, subsequent reads result in a fast
- // buffer access.
- DEF_ENDLIST
- DEF_METHOD
- public BufferedInputStream(InputStream in)
- // Creates a new buffered stream with a default
- // buffer size.
- //
- // Parameters:
- // in - the input stream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public BufferedInputStream(InputStream in,
- int size)
- // Creates a new buffered stream with the specified
- // buffer size.
- //
- // Parameters:
- // in - the input stream
- // size - the buffer size
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized int read() throws IOException
- // Reads a byte of data. This method will block if no input is
- // available.
- //
- // Returns:
- // the byte read, or -1 if the end of the
- // stream is reached.
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // read in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized int read(byte b[],
- int off,
- int len) throws IOException
- // Reads into an array of bytes.
- // Blocks until some input is available.
- //
- // Parameters:
- // b - the buffer into which the data is read
- // off - the start offset of the data
- // len - the maximum number of bytes read
- // Returns:
- // the actual number of bytes read, -1 is
- // returned when the end of the stream is reached.
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // read in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized long skip(long n) throws IOException
- // Skips n bytes of input.
- //
- // Parameters:
- // n - the number of bytes to be skipped
- // Returns:
- // the actual number of bytes skipped.
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // skip in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized int available() throws IOException
- // Returns the number of bytes that can be read
- // without blocking. This total is the number
- // of bytes in the buffer and the number of bytes
- // available from the input stream.
- //
- // Returns:
- // the number of available bytes.
- // Overrides:
- // available in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void mark(int readlimit)
- // Marks the current position in the input stream. A subsequent
- // call to the reset() method will reposition the stream at the last
- // marked position so that subsequent reads will re-read
- // the same bytes. The stream promises to allow readlimit bytes
- // to be read before the mark position gets invalidated.
- //
- // Parameters:
- // readlimit - the maximum limit of bytes allowed to be read before the
- // mark position becomes invalid.
- // Overrides:
- // mark in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void reset() throws IOException
- // Repositions the stream to the last marked position. If the
- // stream has not been marked, or if the mark has been invalidated,
- // an IOException is thrown. Stream marks are intended to be used in
- // situations where you need to read ahead a little to see what's in
- // the stream. Often this is most easily done by invoking some
- // general parser. If the stream is of the type handled by the
- // parser, it just chugs along happily. If the stream is not of
- // that type, the parser should toss an exception when it fails. If an exception
- // gets tossed within readlimit bytes, the parser will allow the outer code to reset
- // the stream and to try another parser.
- //
- // Throws: IOException
- // If the stream has not been marked or if the mark has been
- // invalidated.
- // Overrides:
- // reset in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean markSupported()
- // Returns a boolean indicating if this stream type supports
- // mark/reset.
- //
- // Overrides:
- // markSupported in class FilterInputStream
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- BufferedOutputStream
- DEF_SUPERCLASS
- FilterOutputStream
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- io
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.io.BufferedOutputStream
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // A buffered output stream. This stream lets you write characters
- // to a stream without causing a write every time. The data
- // is first written into a buffer. Data is written to the
- // actual stream only when the buffer is full, or when the stream is
- // flushed.
- DEF_ENDLIST
- DEF_METHOD
- public BufferedOutputStream(OutputStream out)
- // Creates a new buffered stream with a default
- // buffer size.
- //
- // Parameters:
- // out - the output stream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public BufferedOutputStream(OutputStream out,
- int size)
- // Creates a new buffered stream with the specified
- // buffer size.
- //
- // Parameters:
- // out - the output stream
- // size - the buffer size
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void write(int b) throws IOException
- // Writes a byte. This method will block until the byte is actually
- // written.
- //
- // Parameters:
- // b - the byte to be written
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // write in class FilterOutputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void write(byte b[],
- int off,
- int len) throws IOException
- // Writes a subarray of bytes.
- //
- // Parameters:
- // b - the data to be written
- // off - the start offset in the data
- // len - the number of bytes that are written
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // write in class FilterOutputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void flush() throws IOException
- // Flushes the stream. This will write any buffered
- // output bytes.
- //
- // Throws: IOException
- // If an I/O error has occurred.
- // Overrides:
- // flush in class FilterOutputStream
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- ByteArrayInputStream
- DEF_SUPERCLASS
- InputStream
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- io
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.io.ByteArrayInputStream
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // This class implements a buffer that can be
- // used as an InputStream.
- DEF_ENDLIST
- DEF_METHOD
- public ByteArrayInputStream(byte buf[])
- // Creates an ByteArrayInputStream from the specified array of bytes.
- //
- // Parameters:
- // buf - the input buffer (not copied)
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public ByteArrayInputStream(byte buf[],
- int offset,
- int length)
- // Creates an ByteArrayInputStream from the specified array of bytes.
- //
- // Parameters:
- // buf - the input buffer (not copied)
- // offset - the offset of the first byte to read
- // length - the number of bytes to read
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized int read()
- // Reads a byte of data.
- //
- // Returns:
- // the byte read, or -1 if the end of the
- // stream is reached.
- // Overrides:
- // read in class InputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized int read(byte b[],
- int off,
- int len)
- // Reads into an array of bytes.
- //
- // Parameters:
- // b - the buffer into which the data is read
- // off - the start offset of the data
- // len - the maximum number of bytes read
- // Returns:
- // the actual number of bytes read; -1 is
- // returned when the end of the stream is reached.
- // Overrides:
- // read in class InputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized long skip(long n)
- // Skips n bytes of input.
- //
- // Parameters:
- // n - the number of bytes to be skipped
- // Returns:
- // the actual number of bytes skipped.
- // Overrides:
- // skip in class InputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized int available()
- // Returns the number of available bytes in the buffer.
- //
- // Overrides:
- // available in class InputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void reset()
- // Resets the buffer to the beginning.
- //
- // Overrides:
- // reset in class InputStream
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- ByteArrayOutputStream
- DEF_SUPERCLASS
- OutputStream
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- io
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.io.ByteArrayOutputStream
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // This class implements a buffer that can be
- // used as an OutputStream. The buffer automatically
- // grows when data is written to the stream.
- // The data can be retrieved using toByteArray() and
- // toString().
- DEF_ENDLIST
- DEF_METHOD
- public ByteArrayOutputStream()
- // Creates a new ByteArrayOutputStream.
- //
- DEF_ENDLIST
- DEF_METHOD
- public ByteArrayOutputStream(int size)
- // Creates a new ByteArrayOutputStream with the specified initial size.
- //
- // Parameters:
- // size - the initial size
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void write(int b)
- // Writes a byte to the buffer.
- //
- // Parameters:
- // b - the byte
- // Overrides:
- // write in class OutputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void write(byte b[],
- int off,
- int len)
- // Writes bytes to the buffer.
- //
- // Parameters:
- // b - the data to be written
- // off - the start offset in the data
- // len - the number of bytes that are written
- // Overrides:
- // write in class OutputStream
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void writeTo(OutputStream out) throws IOException
- // Writes the contents of the buffer to another stream.
- //
- // Parameters:
- // out - the output stream to write to
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized void reset()
- // Resets the buffer so that you can use it again without
- // throwing away the already allocated buffer.
- //
- DEF_ENDLIST
- DEF_METHOD
- public synchronized byte[] toByteArray()
- // Returns a copy of the input data.
- //
- DEF_ENDLIST
- DEF_METHOD
- public int size()
- // Returns the current size of the buffer.
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Converts input data to a string.
- //
- // Returns:
- // the string.
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString(int hibyte)
- // Converts input data to a string. The top 8 bits of
- // each 16 bit Unicode character are set to hibyte.
- //
- // Parameters:
- // hibyte - the bits set
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- AbstractMethodError
- DEF_SUPERCLASS
- IncompatibleClassChangeError
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals an attempt to call an abstract method.
- DEF_ENDLIST
- DEF_METHOD
- public AbstractMethodError()
- // Constructs an AbstractMethodError with no detail message. A detail
- // message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public AbstractMethodError(String s)
- // Constructs an AbstractMethodError with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the String that contains the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- ArithmeticException
- DEF_SUPERCLASS
- RuntimeException
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that an exceptional arithmetic condition has occurred. For
- // example, dividing by zero would invoke this class.
- DEF_ENDLIST
- DEF_METHOD
- public ArithmeticException()
- // Constructs an ArithmeticException with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public ArithmeticException(String s)
- // Constructs an ArithmeticException with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the String that contains a detailed message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- ArrayIndexOutOfBoundsException
- DEF_SUPERCLASS
- IndexOutOfBoundsException
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that an invalid array index has been used.
- DEF_ENDLIST
- DEF_METHOD
- public ArrayIndexOutOfBoundsException()
- // Constructs an ArrayIndexOutOfBoundsException with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public ArrayIndexOutOfBoundsException(int index)
- // Constructs a new ArrayIndexOutOfBoundsException class initialized to
- // the specific index.
- //
- // Parameters:
- // index - the index where the error occurred
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public ArrayIndexOutOfBoundsException(String s)
- // Constructs an ArrayIndexOutOfBoundsException class with the specified detail
- // message. A detail message is a String that describes this particular
- // exception.
- //
- // Parameters:
- // s - the String containing a detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- ArrayStoreException
- DEF_SUPERCLASS
- RuntimeException
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // An attempt has been made to store the wrong type of Object to an array.
- DEF_ENDLIST
- DEF_METHOD
- public ArrayStoreException()
- // Constructs a ArrayStoreException with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public ArrayStoreException(String s)
- // Constructs a ArrayStoreException with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the String containing a detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Boolean
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // The Boolean class provides an object wrapper for Boolean data values, and
- // serves as a place for boolean-oriented operations.
- // A wrapper is useful because most of Java's utility classes require the use
- // of objects. Since booleans are not objects in Java, they need to be
- // "wrapped" in a Boolean instance.
- DEF_ENDLIST
- DEF_METHOD
- public Boolean(boolean value)
- // Constructs a Boolean object initialized to the specified boolean
- // value.
- //
- // Parameters:
- // value - the value of the boolean
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Boolean(String s)
- // Constructs a Boolean object initialized to the value specified by the
- // String parameter.
- //
- // Parameters:
- // s - the String to be converted to a Boolean
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean booleanValue()
- // Returns the value of this Boolean object as a boolean.
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Boolean valueOf(String s)
- // Returns the boolean value represented by the specified String.
- //
- // Parameters:
- // s - the String to be parsed
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns a new String object representing this Boolean's value.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int hashCode()
- // Returns a hashcode for this Boolean.
- //
- // Overrides:
- // hashCode in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean equals(Object obj)
- // Compares this object against the specified object.
- //
- // Parameters:
- // obj - the object to compare with
- // Returns:
- // true if the objects are the same; false otherwise.
- // Overrides:
- // equals in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static boolean getBoolean(String name)
- // Gets a Boolean from the properties.
- //
- // Parameters:
- // name - the property name.
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Character
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // The Character class provides an object wrapper for Character data values
- // and serves as a place for character-oriented operations. A wrapper is useful
- // because most of Java's utility classes require the use of objects. Since characters
- // are not objects in Java, they need to be "wrapped" in a Character instance.
- DEF_ENDLIST
- DEF_METHOD
- public Character(char value)
- // Constructs a Character object with the specified value.
- //
- // Parameters:
- // value - value of this Character object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static boolean isLowerCase(char ch)
- // Determines if the specified character is ISO-LATIN-1 lower case.
- //
- // Parameters:
- // ch - the character to be tested
- // Returns:
- // true if the character is lower case; false otherwise.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static boolean isUpperCase(char ch)
- // Determines if the specified character is ISO-LATIN-1 upper case.
- //
- // Parameters:
- // ch - the character to be tested
- // Returns:
- // true if the character is upper case; false otherwise.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static boolean isDigit(char ch)
- // Determines if the specified character is a ISO-LATIN-1 digit.
- //
- // Parameters:
- // ch - the character to be tested
- // Returns:
- // true if this character is a digit; false otherwise.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static boolean isSpace(char ch)
- // Determines if the specified character is ISO-LATIN-1 white space according to Java.
- //
- // Parameters:
- // ch - the character to be tested
- // Returns:
- // true if the character is white space; false otherwise.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static char toLowerCase(char ch)
- // Returns the lower case character value of the specified ISO-LATIN-1
- // character. Characters that are not upper case letters are returned
- // unmodified.
- //
- // Parameters:
- // ch - the character to be converted
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static char toUpperCase(char ch)
- // Returns the upper case character value of the specified ISO-LATIN-1
- // character.
- // Characters that are not lower case letters are returned unmodified.
- // Note that German ess-zed and latin small letter y diaeresis have no
- // corresponding upper case letters, even though they are lower case.
- // There is a capital y diaeresis, but not in ISO-LATIN-1...
- //
- // Parameters:
- // ch - the character to be converted
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static int digit(char ch,
- int radix)
- // Returns the numeric value of the character digit using the specified
- // radix. If the character is not a valid digit, it returns -1.
- //
- // Parameters:
- // ch - the character to be converted
- // radix - the radix
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public static char forDigit(int digit,
- int radix)
- // Returns the character value for the specified digit in the specified
- // radix. If the digit is not valid in the radix, the 0 character
- // is returned.
- //
- // Parameters:
- // digit - the digit chosen by the character value
- // radix - the radix containing the digit
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public char charValue()
- // Returns the value of this Character object.
- //
- DEF_ENDLIST
- DEF_METHOD
- public int hashCode()
- // Returns a hashcode for this Character.
- //
- // Overrides:
- // hashCode in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean equals(Object obj)
- // Compares this object against the specified object.
- //
- // Parameters:
- // obj - the object to compare with
- // Returns:
- // true if the objects are the same; false otherwise.
- // Overrides:
- // equals in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns a String object representing this character's value.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Class
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Class objects contain runtime representations of classes. Every
- // object in the system is an instance of some Class, and for each Class
- // there is one of these descriptor objects. A Class descriptor is not
- // modifiable at runtime.
- // The following example uses a Class object to print the Class name
- // of an object:
- //
- // void printClassName(Object obj) {
- // System.out.println("The class of " + obj +
- // " is " + obj.getClass().getName());
- // }
- //
- DEF_ENDLIST
- DEF_METHOD
- public static Class forName(String className) throws ClassNotFoundException
- // Returns the runtime Class descriptor for the specified Class.
- // For example, the following code fragment returns the runtime
- // Class descriptor for the Class named java.lang.Thread:
- //
- // Class t = Class.forName("java.lang.Thread")
- //
- //
- // Parameters:
- // className - the fully qualified name of the desired Class
- // Throws: ClassNotFoundException
- // If the Class could not be found.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Object newInstance() throws InstantiationException, IllegalAccessException
- // Creates a new instance of this Class.
- //
- // Returns:
- // the new instance of this Class.
- // Throws: InstantiationException
- // If you try to instantiate
- // an abstract class or an interface, or if
- // the instantiation fails for some other reason.
- // Throws: IllegalAccessException
- // If the class or initializer
- // is not accessible.
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String getName()
- // Returns the name of this Class.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Class getSuperclass()
- // Returns the superclass of this Class.
- //
- DEF_ENDLIST
- DEF_METHOD
- public Class[] getInterfaces()
- // Returns the interfaces of this Class. An array
- // of length 0 is returned if this Class implements no interfaces.
- //
- DEF_ENDLIST
- DEF_METHOD
- public ClassLoader getClassLoader()
- // Returns the Class loader of this Class. Returns null
- // if this Class does not have a Class loader.
- //
- // See Also:
- // ClassLoader
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean isInterface()
- // Returns a boolean indicating whether or not this Class is an
- // interface.
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Returns the name of this class or interface. The word
- // "class" is prepended if it is a Class; the word "interface"
- // is prepended if it is an interface.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- ClassCastException
- DEF_SUPERCLASS
- RuntimeException
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that an invalid cast has occurred.
- DEF_ENDLIST
- DEF_METHOD
- public ClassCastException()
- // Constructs a ClassCastException with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public ClassCastException(String s)
- // Constructs a ClassCastException with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the String containing a detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- ClassCircularityError
- DEF_SUPERCLASS
- LinkageError
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that a circularity has been detected when initializing a class.
- DEF_ENDLIST
- DEF_METHOD
- public ClassCircularityError()
- // Constructs a ClassCircularityError with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public ClassCircularityError(String s)
- // Constructs a ClassCircularityError with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- ClassFormatError
- DEF_SUPERCLASS
- LinkageError
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals an invalid file format has occurred.
- DEF_ENDLIST
- DEF_METHOD
- public ClassFormatError()
- // Constructs a ClassFormatError with no detail message. A detail message
- // is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public ClassFormatError(String s)
- // Constructs a ClassFormatError with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the String containing the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- ClassLoader
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // ClassLoader is an abstract Class that can be used to define a policy
- // for loading Java classes into the runtime environment. By default,
- // the runtime system loads classes that originate as files by reading
- // them from the directory defined by the CLASSPATH environment
- // variable (this is platform dependent). The default mechanism does not involve
- // a Class loader.
- // However, some classes may not originate from a file; they could be
- // loaded from some other source, e.g., the network. Classes loaded
- // from the network are an array of bytes. A ClassLoader can be used to
- // tell the runtime system to convert an array of bytes into an instance
- // of class Class.
- // This conversion information is passed to the runtime using the defineClass()
- // method.
- // Classes that are created through the defineClass() mechanism can
- // reference other classes by name. To resolve those names, the runtime
- // system calls the ClassLoader that originally created the Class.
- // The runtime system calls the abstract method loadClass() to load
- // the referenced classes.
- //
- // ClassLoader loader = new NetworkClassLoader(host, port);
- // Object main = loader.loadClass("Main").newInstance();
- // ....
- //
- // The NetworkClassLoader subclass must define the method loadClass() to
- // load a Class from the network. Once it has downloaded the bytes
- // that make up the Class it should use the method defineClass() to create a Class
- // instance. A sample implementation could be:
- //
- // class NetworkClassLoader {
- // String host;
- // int port;
- // Hashtable cache = new Hashtable();
- // private byte loadClassData(String name)[] {
- // // load the class data from the connection
- // ...
- // }
- // public synchronized Class loadClass(String name) {
- // Class c = cache.get(name);
- // if (c == null) {
- // byte data[] = loadClassData(name);
- // cache.put(name, defineClass(data, 0, data.length));
- // }
- // return c;
- // }
- // }
- //
- //
- // See Also:
- // Class
- //
- DEF_ENDLIST
- DEF_METHOD
- protected ClassLoader()
- // Constructs a new Class loader and initializes it.
- //
- DEF_ENDLIST
- DEF_METHOD
- protected abstract Class loadClass(String name,
- boolean resolve) throws ClassNotFoundException
- // Resolves the specified name to a Class. The method loadClass() is
- // called by the virtual machine.
- // As an abstract method, loadClass() must be defined in a subclass of
- // ClassLoader. By using a Hashtable, you can avoid loading the same
- // Class more than once.
- //
- // Parameters:
- // name - the name of the desired Class
- // resolve - true if the Class needs to be resolved
- // Returns:
- // the resulting Class, or null if it was not found.
- // Throws: ClassNotFoundException
- // Cannot find a definition for the class
- // See Also:
- // Hashtable
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected final Class defineClass(byte data[],
- int offset,
- int length)
- // Converts an array of bytes to an instance of class Class. Before the
- // Class can be used it must be resolved.
- //
- // Parameters:
- // data - the bytes that make up the Class
- // offset - the start offset of the Class data
- // length - the length of the Class data
- // Returns:
- // the Class object which was created from the data.
- // Throws: ClassFormatError
- // If the data does not contain a valid
- // Class.
- // See Also:
- // loadClass, resolveClass
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected final void resolveClass(Class c)
- // Resolves classes referenced by this Class. This must be done before the
- // Class can be used. Class names referenced by the resulting Class are
- // resolved by calling loadClass().
- //
- // Parameters:
- // c - the Class to be resolved
- // See Also:
- // defineClass
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- protected final Class findSystemClass(String name) throws ClassNotFoundException
- // Loads a system Class. A system Class is a class with the
- // primordial Class loader (which is null).
- //
- // Parameters:
- // name - the name of the system Class
- // Throws: NoClassDefFoundError
- // If the Class is not found.
- // Throws: ClassNotFoundException
- // Cannot find a definition for the class
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- ClassNotFoundException
- DEF_SUPERCLASS
- Exception
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that a class could not be found.
- DEF_ENDLIST
- DEF_METHOD
- public ClassNotFoundException()
- // Constructs a ClassNotFoundException with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public ClassNotFoundException(String s)
- // Constructs a ClassNotFoundException with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- CloneNotSupportedException
- DEF_SUPERCLASS
- Exception
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- // Signals that an attempt has been made to clone an object that does not
- // want to be cloned.
- DEF_ENDLIST
- DEF_METHOD
- public CloneNotSupportedException()
- // Constructs an CloneNotSupportedException with no detail message.
- // A detail message is a String that describes this particular exception.
- //
- DEF_ENDLIST
- DEF_METHOD
- public CloneNotSupportedException(String s)
- // Constructs an CloneNotSupportedException with the specified detail message.
- // A detail message is a String that describes this particular exception.
- //
- // Parameters:
- // s - the detail message
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- Compiler
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- lang
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- DEF_ENDLIST
- DEF_DECLARATION
- DEF_ENDLIST
- DEF_ENDCOMPONENT
- DEF_COMPONENTNAME
- BitSet
- DEF_SUPERCLASS
- Object
- DEF_SUPERCOMPONENT
-
- DEF_PACKAGE
- java
- util
- DEF_ENDLIST
- DEF_SUBCOMPONENTLIST
- DEF_ENDLIST
- DEF_SUBCOMPONENTCLASSLIST
- DEF_ENDLIST
- DEF_CATEGORY
-
- DEF_BITMAP
-
- DEF_THUMBNAIL_UP
-
- DEF_THUMBNAIL_DOWN
-
- DEF_BASE
- DEF_IMPORTS
- java.util.BitSet
- DEF_ENDLIST
- DEF_REQUIRES
- DEF_ENDLIST
- DEF_IMPLEMENTS
- Cloneable
- DEF_ENDLIST
- DEF_DECLARATION
- // A set of bits. The set automatically grows as more bits are
- // needed.
- DEF_ENDLIST
- DEF_METHOD
- public BitSet()
- // Creates an empty set.
- //
- DEF_ENDLIST
- DEF_METHOD
- public BitSet(int nbits)
- // Creates an empty set with the specified size.
- //
- // Parameters:
- // nbits - the size of the set
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void set(int bit)
- // Sets a bit.
- //
- // Parameters:
- // bit - the bit to be set
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void clear(int bit)
- // Clears a bit.
- //
- // Parameters:
- // bit - the bit to be cleared
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean get(int bit)
- // Gets a bit.
- //
- // Parameters:
- // bit - the bit to be gotten
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void and(BitSet set)
- // Logically ANDs this bit set with the specified set of bits.
- //
- // Parameters:
- // set - the bit set to be ANDed with
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void or(BitSet set)
- // Logically ORs this bit set with the specified set of bits.
- //
- // Parameters:
- // set - the bit set to be ORed with
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public void xor(BitSet set)
- // Logically XORs this bit set with the specified set of bits.
- //
- // Parameters:
- // set - the bit set to be XORed with
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int hashCode()
- // Gets the hashcode.
- //
- // Overrides:
- // hashCode in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public int size()
- // Calculates and returns the set's size
- //
- DEF_ENDLIST
- DEF_METHOD
- public boolean equals(Object obj)
- // Compares this object against the specified object.
- //
- // Parameters:
- // obj - the object to commpare with
- // Returns:
- // true if the objects are the same; false otherwise.
- // Overrides:
- // equals in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public Object clone()
- // Clones the BitSet.
- //
- // Overrides:
- // clone in class Object
- //
- //
- DEF_ENDLIST
- DEF_METHOD
- public String toString()
- // Converts the BitSet to a String.
- //
- // Overrides:
- // toString in class Object
- //
- //
- DEF_ENDLIST
- DEF_ENDCOMPONENT
-