Examples of NamedObject


Examples of org.apache.ace.webui.NamedObject

                    else {
                        object = null;
                    }
                }
                if (object != null) {
                    NamedObject namedObject = getNamedObject(object);
                    if (namedObject != null) {
                        if (namedObject.getName().equals(value)) {
                            return object;
                        }
                    }
                }
            }
View Full Code Here

Examples of org.apache.ace.webui.NamedObject

        // shows off components that are contributed by extensions
        manager.add(createComponent()
            .setInterface(UIExtensionFactory.class.getName(), new Properties() {{ put(UIExtensionFactory.EXTENSION_POINT_KEY, UIExtensionFactory.EXTENSION_POINT_VALUE_TARGET); }})
            .setImplementation(new UIExtensionFactory() {
                public Component create(Map<String, Object> context) {
                    final NamedObject object = (NamedObject) context.get("object");
                    VerticalLayout vl = new VerticalLayout();
                    vl.setCaption("Info");
                    final NamedObject namedObject = (NamedObject) context.get("object");
                    final StatefulGatewayObject target = (StatefulGatewayObject) namedObject.getObject();
                    Label info = new Label("Target ID: " + namedObject.getName() + "<br />" +
                    "Installed version: " + target.getLastInstallVersion() + "<br />" +
                "Available version: " + target.getCurrentVersion() + "<br />" +
            "Provisioning state: " + target.getProvisioningState() + "<br />" +
            "Registration state: " + target.getRegistrationState());
                    info.setContentMode(Label.CONTENT_XHTML);
View Full Code Here

Examples of org.apache.ace.webui.NamedObject

    private volatile LogService m_log;
   
    private final ExecutorService m_executor = Executors.newCachedThreadPool();
   
    public Panel create(Map<String, Object> context) {
        NamedObject namedObject = (NamedObject) context.get("object");
        StatefulGatewayObject target = (StatefulGatewayObject) namedObject.getObject();
        return new NodePanel(this, target.getID());
    }
View Full Code Here

Examples of org.freeplane.core.resources.NamedObject

    add(periodComponent);
    add(periodUnitBox);
  }
 
  PeriodUnit getPeriodUnit(){
    final NamedObject selectedItem = (NamedObject)periodUnitBox.getSelectedItem();
    final PeriodUnit period = (PeriodUnit)selectedItem.getObject();
    return period;
  }
View Full Code Here

Examples of org.freeplane.core.resources.NamedObject

    editorSelector = new JComboBox();
    editorSelector.setEditable(false);
    editorSelector.setRenderer(NamedObject.getIconRenderer());
    editorSelector.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        final NamedObject key = (NamedObject) editorSelector.getSelectedItem();
        editor = editors.get(key);
        final CardLayout layout = (CardLayout) editorPanel.getLayout();       
        layout.show(editorPanel,  key.getObject().toString());
        editor.getEditorComponent().requestFocusInWindow();
          final ActionEvent actionEvent = new ActionEvent(editor, 0, null);
          for (final ActionListener l : actionListeners) {
            l.actionPerformed(actionEvent);
          }
View Full Code Here

Examples of org.freeplane.core.resources.NamedObject

    }
    for(Entry<NamedObject, ComboBoxEditor> editorEntry: editors.entrySet()){
      final ComboBoxEditor editor = editorEntry.getValue();
      editor.setItem(anObject);
      final Object item = editor.getItem();
      NamedObject key = editorEntry.getKey();
      if(anObject.equals(item) && ! key.equals(editorSelector.getSelectedItem())){
        editorSelector.setSelectedItem(key);
        return;
      }
    }
  }
View Full Code Here

Examples of org.freeplane.core.resources.NamedObject

      return null;
    final int depth = node.depth();
    final MapModel map = node.getMap();
    final MapStyleModel extension = MapStyleModel.getExtension(map);
    final String name = depth == 0 ? "AutomaticLayout.level.root" : "AutomaticLayout.level," + depth;
    final NamedObject obj = NamedObject.format(name);
    final IStyle style = StyleFactory.create(obj);
    if (extension.getStyleNode(style) != null) {
      return style;
    }
    return null;
View Full Code Here

Examples of org.freeplane.core.resources.NamedObject

  public boolean canHandle(final Object selectedItem) {
    if (!(selectedItem instanceof NamedObject)) {
      return false;
    }
    final NamedObject namedObject = (NamedObject) selectedItem;
    return namedObject.objectEquals(LogicalStyleFilterController.FILTER_STYLE);
  }
View Full Code Here

Examples of org.freeplane.core.resources.NamedObject

    }

  public StyleNamedObject(String string) {
    if(string == null)
      throw new NullPointerException();
    namedObject = new NamedObject(string);
    }
View Full Code Here

Examples of org.freeplane.core.resources.NamedObject

  private void setValuesEditor() {
    final Object selectedProperty = filteredPropertiesComponent.getSelectedItem();
    final IElementaryConditionController conditionController = filterController.getConditionFactory()
        .getConditionController(selectedProperty);
    final NamedObject selectedCondition = (NamedObject) elementaryConditions.getSelectedItem();
    final boolean canSelectValues = conditionController
        .canSelectValues(selectedProperty, selectedCondition);
    values.setEnabled(canSelectValues);
    values.setEditable(false);
    values.setModel(conditionController.getValuesForProperty(selectedProperty, selectedCondition));
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.