Softhema Java Toolkit Collection 1.1

softhema.system.toolkits
Class ToolkitSwing

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

public class ToolkitSwing
extends java.lang.Object


Constructor Summary
ToolkitSwing()
           
 
Method Summary
static java.lang.Object ComboItemReplace(javax.swing.JComboBox combo, int idx, java.lang.Object newItem)
          Replaces the text of a certain item of a JComboBox.
static java.lang.Object ComboItemReplace(javax.swing.JComboBox combo, int idx, java.lang.Object newItem, boolean bKeepSelectedIndex)
          Replaces the text of a certain item of a JComboBox.
static java.lang.String getLicenseInfo()
          The method returns copyright information of the Java class.
static void invokeAndWaitEx(java.lang.Runnable invoke)
          Improved version of the invokeAndWait method from the class SwingUtilities.
static boolean ListItemsSelectedMoveDown(javax.swing.JList list)
          The selected items of the control element JList in the parameter list are shifted a place downward.
static boolean ListItemsSelectedMoveUp(javax.swing.JList list)
          The selected items of the control element JList in the parameter list are shifted a place upward.
static boolean ListItemsSelectedRemove(javax.swing.JList list)
          Removes the selected items from the control element list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolkitSwing

public ToolkitSwing()
Method Detail

getLicenseInfo

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

invokeAndWaitEx

public static void invokeAndWaitEx(java.lang.Runnable invoke)
                            throws java.lang.Throwable
Improved version of the invokeAndWait method from the class SwingUtilities. The invokeAndWait method of the class SwingUtilities may not be called by the user surface thread. The invokeAndWaitEx method checks first, whether it was called through the user surface Thread. If its the case, then the run method in the interface Runnable is called directly. If its not the case, then the invokeAndWait method from the class SwingUtilities is called. This method is used, if one does not know whether it called through the user interface thread or any other thread.

development stage of the method: release


ComboItemReplace

public static java.lang.Object ComboItemReplace(javax.swing.JComboBox combo,
                                                int idx,
                                                java.lang.Object newItem)
Replaces the text of a certain item of a JComboBox. The index selected last is preserved.

development stage of the method: release


ComboItemReplace

public static java.lang.Object ComboItemReplace(javax.swing.JComboBox combo,
                                                int idx,
                                                java.lang.Object newItem,
                                                boolean bKeepSelectedIndex)
Replaces the text of a certain item of a JComboBox. If the parameter bKeepSelectedIndex is true, then the index selected last gets preserved.

development stage of the method: release


ListItemsSelectedMoveUp

public static boolean ListItemsSelectedMoveUp(javax.swing.JList list)
The selected items of the control element JList in the parameter list are shifted a place upward. Several items can be selected, whereby between them unselected items may exist.

development stage of the method: release


ListItemsSelectedMoveDown

public static boolean ListItemsSelectedMoveDown(javax.swing.JList list)
The selected items of the control element JList in the parameter list are shifted a place downward. Several items can be selected, whereby between them unselected items may exist.

development stage of the method: release


ListItemsSelectedRemove

public static boolean ListItemsSelectedRemove(javax.swing.JList list)
Removes the selected items from the control element list.

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.