Package de.yaams.core.helper

Examples of de.yaams.core.helper.AE


      }

      // add save button?
      if (!withAutoSaveFunction) {
        b.addUnrelatedGap();
        b.addButton(YFactory.b(I18N.t("Speichern"), "disk", new AE() {

          @Override
          public void run() {

            // save all
View Full Code Here


    f.addElement("basic.info",
        new FormInfo("", I18N.t("Ermöglicht das Ausführen von Code. Gebe dazu den Code unten ein und klicke auf ausführen."))
            .setSorting(-1));
    f.addElement("basic.code", txt);
    f.addElement("basic.button", new FormButton(I18N.t("Ausführen"), "ok", new AE() {

      @Override
      public void run() {
        try {
          RBRunTime.interpreter.runScriptlet(txt.getContentAsString());
View Full Code Here

        createField(data, I18N.t("Kontakt"), "", "contact").setInfoTxt(I18N.t("email, if you wish an answer.")));

    f.addHeader("mess", new FormHeader(I18N.t("Message"), "mail"));
    f.addElement("mess.mess", new FormTextArea("", ""));

    f.addButton("feedback", YFactory.b(I18N.t("Send Feedback"), "mail_web", new AE() {

      @Override
      public void run() {
        data.put("system", f.getElement("basic.system").getContentAsString());
        data.put("stack", "feedback " + f.getElement("basic.atitle").getContentAsString() + " "
View Full Code Here

   *
   * @param icon
   * @param title
   */
  protected void createRightButton(String icon, String title) {
    rightButton = YFactory.tb(I18N.t("Datei auswählen"), "folder", new AE() {

      @Override
      public void run() {
        runRightButton();
        updatePreview();
View Full Code Here

   *
   * @param infoTxt
   *            the infoTxt to set
   */
  public FormElement setInfoTxt(final String infoTxt, final String icon) {
    this.infoTxt = YFactory.tb(infoTxt, icon, new AE() {

      @Override
      public void run() {
        YDialog.ok(header.getText(), infoTxt, null);
      }
View Full Code Here

    // add button?
    if (addOKButton) {
      JPanel p = new JPanel(new FlowLayout(FlowLayout.RIGHT, 5, 5));

      // add ok
      p.add(YFactory.b(I18N.t("Ok"), "ok", new AE() {

        @Override
        public void run() {
          pressOk.append("1");
          j.setVisible(false);
          j.dispose();
        }
      }));

      // add cancel
      p.add(YFactory.b(I18N.t("Abbrechen"), "cancel", new AE() {

        @Override
        public void run() {
          j.setVisible(false);
          j.dispose();
View Full Code Here

   * @return the element
   */
  @Override
  public JComponent getElement(final boolean withSaveFunction) {
    if (withSaveFunction) {
      box.addActionListener(new AE() {

        @Override
        public void run() {
          // save it
          informListeners();
View Full Code Here

TOP

Related Classes of de.yaams.core.helper.AE

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.