Examples of PropertyManager


Examples of org.w3c.jigadm.PropertyManager

  gbc.fill = GridBagConstraints.HORIZONTAL;
  gbc.weightx = 0;
  gbc.weighty = 0;
  for(int i=0; i<a.length; i++) {
      if(a[i] != null) {
    PropertyManager pm = PropertyManager.getPropertyManager();
    Properties attrProps =
        pm.getAttributeProperties(rrw, a[i].getAttribute());
    String labelText = (String) attrProps.get("label");
    if ( labelText == null )
        labelText = a[i].getName();
    l = new Label(labelText, Label.RIGHT);
    ae[i] = AttributeEditorFactory.getEditor(rrw,
View Full Code Here

Examples of org.w3c.jigadmin.PropertyManager

     * @param cell The resource cell
     * @see org.w3c.jigadmin.editors.ResourceCell
     */
    protected boolean dropResource(ResourceCell cell) {
  RemoteResourceWrapper rrw = getSelectedResourceWrapper();
  PropertyManager pm = PropertyManager.getPropertyManager();
  try {
      if (! pm.isExtensible(rrw)) {
    return false;
      } else if ((cell.isFrame() || cell.isFilter()) &&
           (pm.isEditable(rrw))) {
    //popupresource
    popupResource(rrw);
    return true;
      } else if (((cell.isContainer() || cell.isResource()) &&
      (! rrw.getResource().isIndexersCatalog()))
View Full Code Here

Examples of util.settings.PropertyManager

import util.settings.StringArrayProperty;

public class StringArrayPropertiesTest extends TestCase {

  public void testStripSlashes() {
    PropertyManager manager = new PropertyManager();
   
    String[] start = {};
    StringArrayProperty firstProp = new StringArrayProperty(manager, "firsttest", start);
    StringArrayProperty secondProp = new StringArrayProperty(manager, "secondtest", start);
    StringArrayProperty thirdProp = new StringArrayProperty(manager, "thirdtest", start);
   
    try {
      manager.readFromFile(new File(this.getClass().getResource("StringArrayProperties.properties").getFile()));
    } catch (IOException e) {
      e.printStackTrace();
      assertTrue("Probleme beim Lesen der Datei", false);
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.