Package com.nexirius.framework.datamodel

Examples of com.nexirius.framework.datamodel.StringModel


        return ret;
    }

    public void showHelp(String text) {
        StringModel about = new StringModel("");
        try {
            XFile aboutFile = new XFile(text);

            about.setText(new String(aboutFile.getBytes()));
        } catch (Exception ex) {
            about.setText(ex.getClass().getName());
            ex.printStackTrace();
        }

        DialogManager.getPopupEditorAdaptor().noDuplicatePopupEdit(about, new SwingViewerCreator(HelpViewer.class), null);
    }
View Full Code Here


        super("Phone");
        init();
    }

    private void init() {
        fk = new StringModel("", ITeamPersistence.FOREIGN_KEY);
        append(fk);
        append(description = new StringModel("", FIELD_DESCRIPTION));
        append(number = new StringModel("", FIELD_NUMBER));
    }
View Full Code Here

        super(FIELD_ADDRESS);
        init();
    }

    private void init() {
        fk = new StringModel("", ITeamPersistence.FOREIGN_KEY);
        append(fk);
        append(street = new StringModel("", FIELD_STREET));
        append(zip = new StringModel("", FIELD_ZIP));
        append(city = new StringModel("", FIELD_CITY));
        append(state = new StringModel("", FIELD_STATE));
        mainAddress = new BooleanModel(false, FIELD_MAIN_ADDRESS);
        append(mainAddress);
    }
View Full Code Here

        }
    }

    public String getChildName() {
        try {
            StringModel m = (StringModel) getChild(CHILD_NAME);

            return m.getText();
        } catch (Exception ex) {
            return null;
        }
    }
View Full Code Here

        }
    }

    public String getNewValue() {
        try {
            StringModel m = (StringModel) getChild(VALUE);

            return m.getText();
        } catch (Exception ex) {
            return null;
        }
    }
View Full Code Here

  }
*/
    private void init(URL url, ViewerFactory factory) {
        history = new SortedVector();
        control = new StructModel("Controls");
        control.append(urlString = new StringModel(url.toString(), "URL"));
        control.appendMethod(new LoadCommand());
        control.appendMethod(prev = new PrevURLCommand());
        control.appendMethod(next = new NextURLCommand());
        control.appendMethod(new CloseCommand());

View Full Code Here

    public DialogPropertiesModel() {
        this("", new Rectangle());
    }

    private void init(String name, Rectangle bounds) {
        this.name = new StringModel(name, "name");
        append(this.name);
        x = new IntModel(bounds.x, "x");
        append(x);
        y = new IntModel(bounds.y, "y");
        append(y);
View Full Code Here

            return this.type.getText();
        }


        private void init() {
            append(identifier = new StringModel("", FIELDNAME_IDENTIFIER));
            append(type = new StringModel("", FIELDNAME_TYPE));
        }
View Full Code Here

    private void init() {
        locales = new LocaleArrayModel();
        append(locales);
        extensions = new ExtensionArrayModel();
        append(extensions);
        lastFile = new StringModel("", "lastFile");
        append(lastFile);
    }
View Full Code Here

        this.fileExtension.setText(locale.getLanguage());
        this.localeName.setText(locale.getDisplayLanguage());
    }

    private void init() {
        fileExtension = new StringModel("", FIELD_fileExtension);
        append(fileExtension);
        localeName = new StringModel("", FIELD_localeName);
        append(localeName);
        localeDefault = new BooleanModel(false, FIELD_localeDefault);
        append(localeDefault);
        localeHidden = new BooleanModel(false, FIELD_localeHidden);
        append(localeHidden);
View Full Code Here

TOP

Related Classes of com.nexirius.framework.datamodel.StringModel

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.