JFormDesigner 5.0.4 Runtime API

com.jformdesigner.model
Class FormNonVisual

java.lang.Object
  extended by com.jformdesigner.model.FormObject
      extended by com.jformdesigner.model.FormComponent
          extended by com.jformdesigner.model.FormNonVisual
All Implemented Interfaces:
FormSelectable

public class FormNonVisual
extends FormComponent

A non-visual form component represents a non-visual JavaBean. Non-visuals are only allowed as children of FormRoot.

JFormDesigner 1.0 only supports javax.swing.ButtonGroup. Starting with JFormDesigner 2.0, all non-visual JavaBeans are supported.

Example for creating a button group:

   FormComponent radioButton1 = new FormComponent("javax.swing.JRadioButton");
   radioButton1.setName("radioButton1");
   radioButton1.setProperty("text", "Radio Button 1");
   radioButton1.setProperty("$buttonGroup", new FormReference("buttonGroup1"));
   panel.add(radioButton1);

   FormComponent radioButton2 = new FormComponent("javax.swing.JRadioButton");
   radioButton2.setName("radioButton2");
   radioButton2.setProperty("text", "Radio Button 2");
   radioButton2.setProperty("$buttonGroup", new FormReference("buttonGroup1"));
   panel.add(radioButton2);

   // Create button group object and add it to FormModel root. The name of
   // this object must match to the name used in the FormReference above.
   FormNonVisual buttonGroup1 = new FormNonVisual("javax.swing.ButtonGroup");
   buttonGroup1.setName("buttonGroup1");
   root.add(buttonGroup1);
 


Field Summary
 
Fields inherited from class com.jformdesigner.model.FormComponent
FIELD_NAME
 
Fields inherited from class com.jformdesigner.model.FormObject
NULL_VALUE
 
Constructor Summary
FormNonVisual(java.lang.String className)
          Constructs a non-visual form component for the specified class.
 
Method Summary
 java.lang.Object clone()
          Clones this form component.
 
Methods inherited from class com.jformdesigner.model.FormComponent
accept, addEvent, addEvent, auxiliary, getAuxiliaryPropertyBoolean, getAuxiliaryPropertyInt, getAuxiliaryPropertyString, getClassName, getConstraints, getEvent, getEventCount, getEvents, getModel, getName, getParent, hasAuxiliary, removeEvent, removeEvent, setName, toString
 
Methods inherited from class com.jformdesigner.model.FormObject
getProperties, getProperty, getProperty, getPropertyBoolean, getPropertyBoolean, getPropertyCount, getPropertyDouble, getPropertyDouble, getPropertyInt, getPropertyInt, getPropertyNames, getPropertyString, getPropertyString, getReferenceCount, properties, propertyNames, setProperty, setProperty, setProperty, setPropertyBoolean, setPropertyBoolean, setPropertyDouble, setPropertyDouble, setPropertyInt, setPropertyInt, setPropertyString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormNonVisual

public FormNonVisual(java.lang.String className)
Constructs a non-visual form component for the specified class.

Method Detail

clone

public java.lang.Object clone()
Clones this form component.

Overrides:
clone in class FormComponent

JFormDesigner 5.0.4 Runtime API

Copyright (C) 2004-2012 FormDev Software GmbH. All rights reserved.