Examples of KeyProperty


Examples of com.opensymphony.xwork2.util.KeyProperty

     * @param parentClass the Class which contains as a property the Map or Collection we are finding the key for.
     * @param property    the property of the Map or Collection for the given parent class
     * @see com.opensymphony.xwork2.conversion.ObjectTypeDeterminer#getKeyProperty(Class, String)
     */
    public String getKeyProperty(Class parentClass, String property) {
        KeyProperty annotation = getAnnotation(parentClass, property, KeyProperty.class);
        if (annotation != null) {
            return annotation.value();
        }
        return (String) xworkConverter.getConverter(parentClass, KEY_PROPERTY_PREFIX + property);
    }
View Full Code Here

Examples of com.opensymphony.xwork2.util.KeyProperty

     * @param parentClass the Class which contains as a property the Map or Collection we are finding the key for.
     * @param property    the property of the Map or Collection for the given parent class
     * @see com.opensymphony.xwork2.conversion.ObjectTypeDeterminer#getKeyProperty(Class, String)
     */
    public String getKeyProperty(Class parentClass, String property) {
        KeyProperty annotation = getAnnotation(parentClass, property, KeyProperty.class);

        if (annotation != null) {
            return annotation.value();
        }

        return (String) xworkConverter.getConverter(parentClass, KEY_PROPERTY_PREFIX + property);
    }
View Full Code Here

Examples of com.opensymphony.xwork2.util.KeyProperty

     * @param parentClass the Class which contains as a property the Map or Collection we are finding the key for.
     * @param property    the property of the Map or Collection for the given parent class
     * @see com.opensymphony.xwork2.conversion.ObjectTypeDeterminer#getKeyProperty(Class, String)
     */
    public String getKeyProperty(Class parentClass, String property) {
        KeyProperty annotation = getAnnotation(parentClass, property, KeyProperty.class);
        if (annotation != null) {
            return annotation.value();
        }
        return (String) xworkConverter.getConverter(parentClass, KEY_PROPERTY_PREFIX + property);
    }
View Full Code Here

Examples of com.opensymphony.xwork2.util.KeyProperty

     * @param parentClass the Class which contains as a property the Map or Collection we are finding the key for.
     * @param property    the property of the Map or Collection for the given parent class
     * @see com.opensymphony.xwork2.conversion.ObjectTypeDeterminer#getKeyProperty(Class, String)
     */
    public String getKeyProperty(Class parentClass, String property) {
        KeyProperty annotation = getAnnotation(parentClass, property, KeyProperty.class);

        if (annotation != null) {
            return annotation.value();
        }

        return (String) xworkConverter.getConverter(parentClass, KEY_PROPERTY_PREFIX + property);
    }
View Full Code Here

Examples of nl.topicus.onderwijs.dashboard.modules.KeyProperty

  @Override
  public JsStatement statement() {
    DataSourceSettings settings = DataSourceAnnotationReader
        .getSettings(dataSource);
    KeyProperty keyProperty = DataSourceAnnotationReader
        .getKeyProperty(dataSource);
    Options options = new Options();
    options.putLiteral("dataUrl", dataResource.getCallbackUrl().toString());
    options.putLiteral("label",
        useKeyLabel ? key.getName() : settings.label());
    options.putLiteral("htmlClass", settings.htmlClass());
    options.putLiteral("conversion", settings.conversion());
    options.putLiteral("keyProperty", keyProperty.value());
    JsQuery jsq = new JsQuery(table);
    return jsq.$().chain("dashboardTable", options.getJavaScriptOptions());
  }
View Full Code Here

Examples of org.freeplane.core.resources.components.KeyProperty

    for (final AFreeplaneAction iconAction : actions) {
      final IIconInformation info = (IIconInformation) iconAction;
      optionPanelBuilder.addCreator("Keystrokes/icons", new IPropertyControlCreator() {
        public IPropertyControl createControl() {
          final KeyProperty keyProperty = new KeyProperty(info.getShortcutKey(), info.getTranslationKeyLabel());
          keyProperty.setImageIcon(info.getIcon());
          keyProperty.disableModifiers();
          return keyProperty;
        }
      }, IndexedTree.AS_CHILD);
    }
  }
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.