Softhema Java Toolkit Collection 1.1

softhema.system.toolkits
Class ToolkitAWT

java.lang.Object
  |
  +--softhema.system.toolkits.ToolkitAWT

public class ToolkitAWT
extends java.lang.Object

The class ToolkitAWT contains some useful methods for the AWT. Some methods extend certain user interface control elements of the AWT. The appropriate control element is passed as a parameter to the method. For the indication of these methods, the name of the control elements is placed as prefix. For example, the methods with the prefix List refers to the AWT control element List. Correspondingly, the methods with the prefix Choice refer to the AWT control element Choice. Through this, an alphabetic grouping of the methods is achieved. All methods of the class ToolkitAWT are static. These methods can be called directly in the source code, without a new object being created.


Constructor Summary
ToolkitAWT()
           
 
Method Summary
static java.lang.Object ChoiceItemReplace(java.awt.Choice choice, int idx, java.lang.String sNewItem)
          Replaces the text of a certain item of a Choice.
static java.lang.String ChoiceItemReplace(java.awt.Choice choice, int idx, java.lang.String sNewItem, boolean bKeepSelectedIndex)
          Replaces the text of a certain item of a Choice.
static java.lang.String getLicenseInfo()
          The method returns copyright information of the Java class.
static void ListItemsSelectedMoveDown(java.awt.List list)
          The selected items of the control element List in the parameter list are shifted a place downward.
static void ListItemsSelectedMoveUp(java.awt.List list)
          The selected items of the control element List in the parameter list are shifted a place upward.
static void WindowCenter(java.awt.Window wnd)
          Moves a window to the center of the screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolkitAWT

public ToolkitAWT()
Method Detail

getLicenseInfo

public static java.lang.String getLicenseInfo()
The method returns copyright information of the Java class.

ListItemsSelectedMoveDown

public static void ListItemsSelectedMoveDown(java.awt.List list)
The selected items of the control element List in the parameter list are shifted a place downward. Several items can be selected, whereby between them unselected items may exist.

Applet example

development stage of the method: release


ListItemsSelectedMoveUp

public static void ListItemsSelectedMoveUp(java.awt.List list)
The selected items of the control element List in the parameter list are shifted a place upward. Several items can be selected, whereby between them unselected items may exist.

Applet example

development stage of the method: release


ChoiceItemReplace

public static java.lang.Object ChoiceItemReplace(java.awt.Choice choice,
                                                 int idx,
                                                 java.lang.String sNewItem)
Replaces the text of a certain item of a Choice. The index selected last is preserved.

Applet example

development stage of the method: release


ChoiceItemReplace

public static java.lang.String ChoiceItemReplace(java.awt.Choice choice,
                                                 int idx,
                                                 java.lang.String sNewItem,
                                                 boolean bKeepSelectedIndex)
Replaces the text of a certain item of a Choice. If the parameter bKeepSelectedIndex is true, then the index selected last gets preserved.

Applet example

development stage of the method: release


WindowCenter

public static void WindowCenter(java.awt.Window wnd)
Moves a window to the center of the screen.

development stage of the method: release


Softhema Java Toolkit Collection 1.1

Introduction
Installation
Samples
License (read carefully)

Copyright 2001 by Softhema (www.softhema.de). Softhema and JTC are trademarks or registered trademarks. All rights reserved. This software comes with absolutely no warranty and no support. Read the license carefully.