|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.editor.project.dialog.PropertyComponentFactory
public class PropertyComponentFactory
For creating rows within the PropertyEditor and the StyleEditor
Copyright: Copyright (c) Formaria Ltd., 1998-2003
$Revision: 1.1 $
| Constructor Summary | |
|---|---|
PropertyComponentFactory()
|
|
| Method Summary | |
|---|---|
static javax.swing.JComboBox |
addComboProperty(java.lang.String propertyName,
int selIdx,
java.lang.String[] values,
java.awt.Container page,
java.awt.event.ItemListener ilistener)
Adds a combo field and a label to the toolbar for the named property |
static javax.swing.JLabel |
addLabelProperty(java.lang.String propertyName,
javax.swing.JComponent parent,
java.lang.String action,
java.awt.event.ActionListener aListener,
boolean addButton)
|
static javax.swing.JTextField |
addProperty(java.lang.String propertyName,
java.lang.String content,
boolean optional,
javax.swing.JComponent parent,
java.awt.event.ActionListener alistener,
int width)
|
static void |
addSpacer(java.lang.String title,
java.awt.Container page)
Adds a edit field and a label to the toolbar for the named property |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyComponentFactory()
| Method Detail |
|---|
public static void addSpacer(java.lang.String title,
java.awt.Container page)
title - the property name/label
public static javax.swing.JComboBox addComboProperty(java.lang.String propertyName,
int selIdx,
java.lang.String[] values,
java.awt.Container page,
java.awt.event.ItemListener ilistener)
propertyName - the property name/labelselIdx - the index of the selected item in the dropdownvalues - the dropdown list's valuespage - the Page to get the componentFactory fromilistener - the ItemListener which will be added to the combobox
public static javax.swing.JTextField addProperty(java.lang.String propertyName,
java.lang.String content,
boolean optional,
javax.swing.JComponent parent,
java.awt.event.ActionListener alistener,
int width)
public static javax.swing.JLabel addLabelProperty(java.lang.String propertyName,
javax.swing.JComponent parent,
java.lang.String action,
java.awt.event.ActionListener aListener,
boolean addButton)
propertyName - the name of the property to addparent - The component to which to add the newly created component.action - The String to set as the action commandaListener - The ActionListener to add to the componentwidth - The width of the new componentbtnoffset - The horizontal offset at which to position the component
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||