public class PropertiesEditor
extends java.lang.Object
Constructor and Description |
---|
PropertiesEditor() |
Modifier and Type | Method and Description |
---|---|
static boolean |
createAggregatedPropertiesDialog(ConsoleLayout console,
boolean editable) |
static java.util.LinkedHashMap<java.lang.String,com.l2fprod.common.propertysheet.DefaultProperty> |
createHashMap(com.l2fprod.common.propertysheet.DefaultProperty[] properties) |
static com.l2fprod.common.propertysheet.PropertySheetDialog |
createWindow(java.awt.Window parent,
boolean editable,
com.l2fprod.common.propertysheet.PropertySheetPanel psp,
java.lang.String title) |
static com.l2fprod.common.propertysheet.PropertySheetDialog |
createWindow(java.awt.Window parent,
boolean editable,
com.l2fprod.common.propertysheet.PropertySheetPanel psp,
java.lang.String title,
java.lang.String bannerTitle) |
static boolean |
editProperties(PropertiesProvider provider,
boolean editable)
This method shows a dialog with all the properties available in the properties provider
If the user presses the OK button, the new properties are sent back to the properties provider
|
static boolean |
editProperties(PropertiesProvider provider,
java.awt.Dialog parent,
boolean editable) |
static boolean |
editProperties(PropertiesProvider provider,
java.awt.Frame parent,
boolean editable) |
static boolean |
editProperties(PropertiesProvider provider,
java.awt.Window parent,
boolean editable) |
static com.l2fprod.common.beans.editor.AbstractPropertyEditor |
getComboBoxPropertyEditor(java.lang.String[] options,
java.lang.String value) |
static com.l2fprod.common.propertysheet.PropertyEditorRegistry |
getPropertyEditorRegistry() |
static com.l2fprod.common.propertysheet.DefaultProperty |
getPropertyInstance(com.l2fprod.common.propertysheet.Property p) |
static com.l2fprod.common.propertysheet.DefaultProperty |
getPropertyInstance(java.lang.String propertyName,
java.lang.Class<?> propertyClass,
java.lang.Object value,
boolean isEditable)
Convinience method to create a default property object from various parameters
|
static com.l2fprod.common.propertysheet.DefaultProperty |
getPropertyInstance(java.lang.String propertyName,
java.lang.String categoryName,
java.lang.Class<?> propertyClass,
java.lang.Object value,
boolean isEditable)
Convenience method to create a default property object from various parameters
|
static com.l2fprod.common.propertysheet.DefaultProperty |
getPropertyInstance(java.lang.String propertyName,
java.lang.String categoryName,
java.lang.Class<?> propertyClass,
java.lang.Object value,
boolean isEditable,
java.lang.String shortDescription)
Convinience method to create a default property object from various parameters
|
static com.l2fprod.common.propertysheet.PropertyRendererRegistry |
getPropertyRendererRegistry() |
static void |
localizeProperties(java.util.Collection<com.l2fprod.common.propertysheet.DefaultProperty> original,
java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> result) |
static com.l2fprod.common.propertysheet.Property[] |
mergeProperties(PropertiesProvider[] childProviders,
com.l2fprod.common.propertysheet.Property[] properties)
Convinience method to create a default property object from various parameters
|
protected static java.lang.String |
normalize(java.lang.String text) |
static com.l2fprod.common.propertysheet.DefaultProperty[] |
unlocalizeProps(java.util.LinkedHashMap<java.lang.String,com.l2fprod.common.propertysheet.DefaultProperty> original,
com.l2fprod.common.propertysheet.Property[] newProps) |
public static boolean editProperties(PropertiesProvider provider, boolean editable)
provider
- The PropertiesProvider that is to be configuredpublic static boolean editProperties(PropertiesProvider provider, java.awt.Dialog parent, boolean editable)
public static boolean editProperties(PropertiesProvider provider, java.awt.Frame parent, boolean editable)
public static boolean editProperties(PropertiesProvider provider, java.awt.Window parent, boolean editable)
public static boolean createAggregatedPropertiesDialog(ConsoleLayout console, boolean editable)
protected static java.lang.String normalize(java.lang.String text)
public static void localizeProperties(java.util.Collection<com.l2fprod.common.propertysheet.DefaultProperty> original, java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> result)
public static com.l2fprod.common.propertysheet.PropertySheetDialog createWindow(java.awt.Window parent, boolean editable, com.l2fprod.common.propertysheet.PropertySheetPanel psp, java.lang.String title)
public static com.l2fprod.common.propertysheet.PropertySheetDialog createWindow(java.awt.Window parent, boolean editable, com.l2fprod.common.propertysheet.PropertySheetPanel psp, java.lang.String title, java.lang.String bannerTitle)
public static java.util.LinkedHashMap<java.lang.String,com.l2fprod.common.propertysheet.DefaultProperty> createHashMap(com.l2fprod.common.propertysheet.DefaultProperty[] properties)
public static com.l2fprod.common.propertysheet.DefaultProperty[] unlocalizeProps(java.util.LinkedHashMap<java.lang.String,com.l2fprod.common.propertysheet.DefaultProperty> original, com.l2fprod.common.propertysheet.Property[] newProps)
public static com.l2fprod.common.propertysheet.DefaultProperty getPropertyInstance(java.lang.String propertyName, java.lang.Class<?> propertyClass, java.lang.Object value, boolean isEditable)
propertyName
- The name of the propertypropertyClass
- The class of the values of this propertyvalue
- The current value for this propertyisEditable
- Sets whether the property can be edited by the userpublic static com.l2fprod.common.propertysheet.DefaultProperty getPropertyInstance(java.lang.String propertyName, java.lang.String categoryName, java.lang.Class<?> propertyClass, java.lang.Object value, boolean isEditable, java.lang.String shortDescription)
propertyName
- The name of the propertycategoryName
- The category of the property to be createdpropertyClass
- The class of the values of this propertyvalue
- The current value for this propertyisEditable
- Sets whether the property can be edited by the usershortDescription
- Sets a short description text.public static com.l2fprod.common.propertysheet.Property[] mergeProperties(PropertiesProvider[] childProviders, com.l2fprod.common.propertysheet.Property[] properties)
propertyName
- The name of the propertypropertyClass
- The class of the values of this propertyvalue
- The current value for this propertyisEditable
- Sets whether the property can be edited by the userpublic static com.l2fprod.common.propertysheet.DefaultProperty getPropertyInstance(java.lang.String propertyName, java.lang.String categoryName, java.lang.Class<?> propertyClass, java.lang.Object value, boolean isEditable)
propertyName
- The name of the propertycategoryName
- The category of the property to be createdpropertyClass
- The class of the values of this propertyvalue
- The current value for this propertyisEditable
- Sets whether the property can be edited by the userpublic static com.l2fprod.common.propertysheet.PropertyEditorRegistry getPropertyEditorRegistry()
public static com.l2fprod.common.propertysheet.PropertyRendererRegistry getPropertyRendererRegistry()
public static com.l2fprod.common.propertysheet.DefaultProperty getPropertyInstance(com.l2fprod.common.propertysheet.Property p)
public static com.l2fprod.common.beans.editor.AbstractPropertyEditor getComboBoxPropertyEditor(java.lang.String[] options, java.lang.String value)
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.