Example #1
0
    public GraphemeClustersRow(BeanCatalog.Property prop, Object obj, final Refreshable refresh) {
      super(prop, obj);
      _view = (View) obj;

      JPanel btnpanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
      _undefineButton =
          new WButton(
              new WordCorrAction("btnGraphemeClusterUndefine", "accGraphemeClusterUndefine") {
                public void actionPerformed(ActionEvent evt) {
                  if (doUndefineGraphemeCluster()) {
                    try {
                      // update list
                      setValue(_view.getGraphemeClusters());
                    } catch (DatabaseException ex) {
                      ex.printStackTrace();
                    }
                  }
                }
              });
      btnpanel.add(_undefineButton, BorderLayout.NORTH);

      JPanel panel = new JPanel(new BorderLayout());
      panel.add(_text, BorderLayout.NORTH);
      panel.add(btnpanel, BorderLayout.CENTER);
      init(panel, _text);
      _text.setFont(FontCache.getIPA());
    }
Example #2
0
 /** Constructor. */
 public ViewsUndefineGraphemeClusterRow(
     BeanCatalog.Property prop, Object obj, Refreshable refresh) {
   super(prop, obj);
   _data = (UndefineGraphemeClusterTask) obj;
   _refresh = refresh;
   init(_combo, _combo);
   _combo.setFont(FontCache.getIPA());
   refresh();
 }