Package org.beryl.gui.validators

Examples of org.beryl.gui.validators.IntegerValidator


    okButton = (Button) dialog.getWidget("OKButton");

    customComponents = new HashMap();
    activeComponents = new ArrayList();

    loadCustomComponent("hig", "HIG_Row", new IntegerValidator());
    loadCustomComponent("hig", "HIG_Column", new IntegerValidator());
    loadCustomComponent("hig", "HIG_Width", new IntegerValidator());
    loadCustomComponent("hig", "HIG_Height", new IntegerValidator());
    loadCustomComponent("hig", "HIG_Alignment", null);

    loadCustomComponent("border", "Border_Alignment", null);

    loadCustomComponent("box", "Box_AlignX", new FloatValidator());
View Full Code Here


      TextField textField = new TextField(panel, null);
      textField.setProperty("key", "value_str");
      textField.finalizeConstruction();

      if (type.equals("int"))
        textField.addValidator(new IntegerValidator());
      else if (type.equals("long"))
        textField.addValidator(new LongValidator());
      else if (type.equals("float"))
        textField.addValidator(new FloatValidator());
      else if (type.equals("double"))
View Full Code Here

      rowsTableModel.addRow(new TableEntry(rowsTableModel, pixels, weight));
    }

    dialog = constructDialog("HIGEditor", dataModel);
    ((TextField) dialog.getWidget("ColumnPixels")).addValidator(new IntegerValidator());
    ((TextField) dialog.getWidget("RowPixels")).addValidator(new IntegerValidator());

    rowsTable = (Table) dialog.getWidget("RowsTable");
    rowsTable.setTableDataModel(rowsTableModel);
    columnsTable = (Table) dialog.getWidget("ColumnsTable");
    columnsTable.setTableDataModel(columnsTableModel);
View Full Code Here

    okButton = (Button) dialog.getWidget("OKButton");

    customComponents = new HashMap();
    activeComponents = new ArrayList();

    loadCustomComponent("empty", "Empty_Top", new IntegerValidator());
    loadCustomComponent("empty", "Empty_Bottom", new IntegerValidator());
    loadCustomComponent("empty", "Empty_Left", new IntegerValidator());
    loadCustomComponent("empty", "Empty_Right", new IntegerValidator());
    loadCustomComponent("titled", "Titled_Title", null);

    doLoad();
    dataModel.addModelChangeListener(this);
View Full Code Here

      }

      Panel panel = new Panel(null, null);
      panel.setProperty("layout", new GridLayout(1, 2));
      TextField widthField = new TextField(panel, null);
      widthField.addValidator(new IntegerValidator());
      widthField.setProperty("key", "width");
      TextField heightField = new TextField(panel, null);
      heightField.addValidator(new IntegerValidator());
      heightField.setProperty("key", "height");
      panel.addChild(widthField, null);
      panel.addChild(heightField, null);
      panel.recursiveSetDataModel(dataModel);
View Full Code Here

TOP

Related Classes of org.beryl.gui.validators.IntegerValidator

Copyright © 2018 www.massapicom. 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.