Class TypeTranslator

    • Constructor Detail

    • Method Detail

      • getTypeName

        public org.apache.wicket.model.IModel<String> getTypeName()
        Get the translated name of the type.
      • getValueName

        public org.apache.wicket.model.IModel<String> getValueName​(String property,
                                                                   org.apache.wicket.model.IModel<String> value)
        Get the translated name of a specific value of a property, e.g. "Live" for hippostd:state=published.
      • getPropertyName

        public org.apache.wicket.model.IModel<String> getPropertyName​(String compoundName)
        Get the translated name of a compound's or document's property (field), e.g. "Title" for myproject:title.
        There's a fallback to the "caption" as configured on the document type itself.
      • getValue

        public String getValue​(String propertyName)
        Get the value for a certain property in the current locale.
      • detach

        public void detach()
        Specified by:
        detach in interface org.apache.wicket.model.IDetachable
        Specified by:
        detach in interface org.apache.wicket.model.IModel<NodeType>
        Overrides:
        detach in class NodeTypeModelWrapper