Java 6 SE Platform
6.0
Home

camickr
Class Listing

java.lang.Object
  extended by camickr.Listing

public class Listing
extends java.lang.Object

Listing class categorizes and lists the key/value pairs contained within the javax.swing.UIDefaults collection.

See Also:
Dr. Laszlo Jamf's original post, javax.swing.UIDefaults

Nested Class Summary
(package private) static class Listing.ComponentMaker
          Statically creates a javax.swing.JLabel object and returns this object as javax.swing.JComponent.
 
Field Summary
(package private) static Listing.ComponentMaker[] makers
          Component factory creates an array of ComponentMaker objects of all the categorized UI types.
 
Constructor Summary
Listing()
           
 
Method Summary
(package private) static java.util.List findKeys(java.lang.Class cls)
          Finds the keys in the javax.swing.UIDefaults collection for a particular class and sorts the keys using the java.util.Collections#sort method.
(package private) static java.util.List findRestKeys(java.lang.Class[] cls)
          Finds the rest of the keys in the javax.swing.UIDefaults collection and sorts the keys using Collections#sort.
(package private) static javax.swing.JComboBox getTypesCombo(javax.swing.JPanel view)
          Returns the types javax.swing.JComboBox listing of all the LAF properties and resources.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

makers

static Listing.ComponentMaker[] makers
Component factory creates an array of ComponentMaker objects of all the categorized UI types. i.e. (Boolean, Border, Color, Font, , Number, String, and The Rest).

Constructor Detail

Listing

public Listing()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getTypesCombo

static javax.swing.JComboBox getTypesCombo(javax.swing.JPanel view)
Returns the types javax.swing.JComboBox listing of all the LAF properties and resources. Attachs java.awt.event.ActionListener to the cboTypes javax.swing.JComboBox.

Parameters:
view - javax.swing.JPanel of this view.
Returns:
cboTypes javax.swing.JComboBox of all UIDefaults properties and resources.

findKeys

static java.util.List findKeys(java.lang.Class cls)
Finds the keys in the javax.swing.UIDefaults collection for a particular class and sorts the keys using the java.util.Collections#sort method.

Parameters:
cls - java.lang.Class of one of the defined types.
Returns:
keys java.util.List of this class' keys.

findRestKeys

static java.util.List findRestKeys(java.lang.Class[] cls)
Finds the rest of the keys in the javax.swing.UIDefaults collection and sorts the keys using Collections#sort.

Parameters:
cls - java.lang.Class array of defined class types.
Returns:
keys java.util.List of class keys.

Java 6 SE Platform
6.0
Home

API documentation written, prepared and compiled by Brent Allen Parrish, woven-media.com, 15 May 2008