home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / JSplitPaneBeanInfo.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  4.9 KB  |  59 lines

  1. package javax.swing;
  2.  
  3. import java.awt.Image;
  4. import java.beans.BeanDescriptor;
  5. import java.beans.PropertyDescriptor;
  6. import java.beans.SimpleBeanInfo;
  7. import javax.swing.beaninfo.SwingBeanInfo;
  8.  
  9. public class JSplitPaneBeanInfo extends SwingBeanInfo {
  10.    private static final Class classJSplitPane;
  11.    // $FF: synthetic field
  12.    static Class class$javax$swing$JSplitPane;
  13.  
  14.    static {
  15.       classJSplitPane = class$javax$swing$JSplitPane != null ? class$javax$swing$JSplitPane : (class$javax$swing$JSplitPane = class$("javax.swing.JSplitPane"));
  16.    }
  17.  
  18.    // $FF: synthetic method
  19.    static Class class$(String var0) {
  20.       try {
  21.          return Class.forName(var0);
  22.       } catch (ClassNotFoundException var2) {
  23.          throw new NoClassDefFoundError(((Throwable)var2).getMessage());
  24.       }
  25.    }
  26.  
  27.    private PropertyDescriptor createPropertyDescriptor(String var1, Object[] var2) {
  28.       return super.createPropertyDescriptor(classJSplitPane, var1, var2);
  29.    }
  30.  
  31.    public BeanDescriptor getBeanDescriptor() {
  32.       return ((SwingBeanInfo)this).createBeanDescriptor(classJSplitPane, new Object[]{"preferred", Boolean.TRUE, "shortDescription", "JSplitPane"});
  33.    }
  34.  
  35.    public Image getIcon(int var1) {
  36.       switch (var1) {
  37.          case 1:
  38.             Image var5 = ((SimpleBeanInfo)this).loadImage("beaninfo/images/JSplitPaneColor16.gif");
  39.             return var5 == null ? ((SimpleBeanInfo)this).loadImage("beaninfo/images/JComponentColor16.gif") : var5;
  40.          case 2:
  41.             Image var4 = ((SimpleBeanInfo)this).loadImage("beaninfo/images/JSplitPaneColor32.gif");
  42.             return var4 == null ? ((SimpleBeanInfo)this).loadImage("beaninfo/images/JComponentColor32.gif") : var4;
  43.          case 3:
  44.             Image var3 = ((SimpleBeanInfo)this).loadImage("beaninfo/images/JSplitPaneMono16.gif");
  45.             return var3 == null ? ((SimpleBeanInfo)this).loadImage("beaninfo/images/JComponentMono16.gif") : var3;
  46.          case 4:
  47.             Image var2 = ((SimpleBeanInfo)this).loadImage("beaninfo/images/JSplitPaneMono32.gif");
  48.             return var2 == null ? ((SimpleBeanInfo)this).loadImage("beaninfo/images/JComponentMono32.gif") : var2;
  49.          default:
  50.             return super.getIcon(var1);
  51.       }
  52.    }
  53.  
  54.    public PropertyDescriptor[] getPropertyDescriptors() {
  55.       Object[] var1 = new Object[]{"HORIZONTAL_SPLIT", new Integer(1), "JSplitPane.HORIZONTAL_SPLIT", "VERTICAL_SPLIT", new Integer(0), "JSplitPane.VERTICAL_SPLIT"};
  56.       return new PropertyDescriptor[]{this.createPropertyDescriptor("rightComponent", new Object[]{"bound", Boolean.FALSE, "preferred", Boolean.TRUE, "shortDescription", "The component to the right (or below) the divider."}), this.createPropertyDescriptor("UIClassID", new Object[]{"bound", Boolean.FALSE, "expert", Boolean.TRUE, "shortDescription", "A string that specifies the name of the L&F class."}), this.createPropertyDescriptor("accessibleContext", new Object[]{"bound", Boolean.FALSE, "expert", Boolean.TRUE, "shortDescription", "The AccessibleContext associated with this Label."}), this.createPropertyDescriptor("UI", new Object[]{"bound", Boolean.FALSE, "expert", Boolean.TRUE, "shortDescription", "The L&F object that renders this component."}), this.createPropertyDescriptor("leftComponent", new Object[]{"bound", Boolean.FALSE, "preferred", Boolean.TRUE, "shortDescription", "The component to the left (or above) the divider."}), this.createPropertyDescriptor("maximumDividerLocation", new Object[]{"shortDescription", "maximumDividerLocation"}), this.createPropertyDescriptor("orientation", new Object[]{"bound", Boolean.TRUE, "enumerationValues", var1, "shortDescription", "The orientation, or how the splitter is divided. "}), this.createPropertyDescriptor("bottomComponent", new Object[]{"bound", Boolean.FALSE, "shortDescription", "The component below, or to the right of the divider."}), this.createPropertyDescriptor("continuousLayout", new Object[]{"bound", Boolean.TRUE, "shortDescription", "Whether or not the child components are continuously redisplayed and layed out during user intervention."}), this.createPropertyDescriptor("oneTouchExpandable", new Object[]{"bound", Boolean.TRUE, "shortDescription", "UI widget on the divider to quickly expand/collapse the divider."}), this.createPropertyDescriptor("validateRoot", new Object[]{"bound", Boolean.FALSE, "hidden", Boolean.TRUE, "shortDescription", "validateRoot"}), this.createPropertyDescriptor("dividerSize", new Object[]{"bound", Boolean.TRUE, "shortDescription", "The size of the divider."}), this.createPropertyDescriptor("lastDividerLocation", new Object[]{"bound", Boolean.TRUE, "shortDescription", "The last location the divider was at."}), this.createPropertyDescriptor("minimumDividerLocation", new Object[]{"bound", Boolean.FALSE, "shortDescription", "The minimum location of the divider from the L&F."}), this.createPropertyDescriptor("topComponent", new Object[]{"bound", Boolean.FALSE, "shortDescription", "The component above, or to the left of the divider."})};
  57.    }
  58. }
  59.