gpt4 book ai didi

org.orienteer.core.widget.Widget.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-27 10:41:05 26 4
gpt4 key购买 nike

本文整理了Java中org.orienteer.core.widget.Widget.<init>()方法的一些代码示例,展示了Widget.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Widget.<init>()方法的具体详情如下:
包路径:org.orienteer.core.widget.Widget
类名称:Widget
方法名:<init>

Widget.<init>介绍

暂无

代码示例

代码示例来源:origin: OrienteerBAP/Orienteer

/**
 * Widget for free HTML/JS widget for documents page
 */
@Widget(id="document-html-js-pane", domain="document", oClass=AbstractHtmlJsPaneWidget.WIDGET_OCLASS_NAME, autoEnable=false)
public class ODocumentHtmlJsPaneWidget extends
    AbstractHtmlJsPaneWidget<ODocument> {

  public ODocumentHtmlJsPaneWidget(String id, IModel<ODocument> model,
      IModel<ODocument> widgetDocumentModel) {
    super(id, model, widgetDocumentModel);
  }

  @Override
  protected String interpolate(String content) {
    return MapVariableInterpolator.interpolate(super.interpolate(content), new ODocumentMapWrapper(getModelObject()));
  }
  
}

代码示例来源:origin: OrienteerBAP/Orienteer

/**
 * Widget for calculated document
 */
@Widget(id="calculated-documents", domain="document", order=20, oClass = AbstractCalculatedDocumentsWidget.WIDGET_OCLASS_NAME, autoEnable=false)
public class CalculatedDocumentsWidget extends AbstractCalculatedDocumentsWidget<ODocument> {

  public CalculatedDocumentsWidget(String id, IModel<ODocument> model, IModel<ODocument> widgetDocumentModel) {
    super(id, model, widgetDocumentModel);
  }
  
  @Override
  protected OQueryDataProvider<ODocument> newDataProvider(String sql) {
    return super.newDataProvider(sql)
            .setParameter("doc", getModel())
            .setContextVariable("doc", getModel());
  }
}

代码示例来源:origin: OrienteerBAP/Orienteer

/**
 * BIRT report for list of objects
 */

@Widget(id="birt-report", domain="browse", oClass=BrowseBirtWidget.OCLASS_NAME, order=10, autoEnable=false)
public class BrowseBirtWidget extends AbstractBirtWidget<OClass>{

  /**
   * 
   */
  private static final long serialVersionUID = 1L;
  public static final String OCLASS_NAME = "BrowseBirtWidget";

  public BrowseBirtWidget(String id, IModel<OClass> model, IModel<ODocument> widgetDocumentModel) {
    super(id, model, widgetDocumentModel,null);
  }

}

代码示例来源:origin: OrienteerBAP/Orienteer

/**
 * Widget to show and modify {@link com.orientechnologies.orient.core.metadata.schema.OProperty} localization.
 */
@Widget(id="property-localization", domain="property", tab="localization", autoEnable=true)
public class OPropertyLocalizationWidget extends AbstractSchemaLocalizationWidget<OProperty> {

  public OPropertyLocalizationWidget(String id, IModel<OProperty> model, final IModel<ODocument> widgetDocumentModel) {
    super(id, model, widgetDocumentModel);

  }

  @Override
  protected String getLocalizationKey(OProperty oProperty) {
    return oProperty.getOwnerClass().getName() + "." + oProperty.getName();
  }

  @Override
  protected IModel<String> getDefaultTitleModel() {
    return new ResourceModel("class.localization");
  }

}

代码示例来源:origin: OrienteerBAP/Orienteer

/**
 * Widget for free HTML/JS widget for browse page
 */
@Widget(id="browse-html-js-pane", domain="browse", oClass=AbstractHtmlJsPaneWidget.WIDGET_OCLASS_NAME, order=10, autoEnable=false)
public class BrowseHtmlJsPaneWidget extends AbstractHtmlJsPaneWidget<OClass> {

  public BrowseHtmlJsPaneWidget(String id, IModel<OClass> model,
      IModel<ODocument> widgetDocumentModel) {
    super(id, model, widgetDocumentModel);
  }
  
  @Override
  protected String interpolate(String content) {
    Map<String, Object> params = new HashMap<String, Object>();
    params.put("className", getModelObject().getName());
    return MapVariableInterpolator.interpolate(super.interpolate(content), params);
  }
  
}

代码示例来源:origin: OrienteerBAP/Orienteer

/**
 * Widget to show and modify {@link com.orientechnologies.orient.core.metadata.schema.OClass} localization.
 */
@Widget(id="class-localization", domain="class", tab="localization", order=20, autoEnable=true)
public class OClassLocalizationWidget extends AbstractSchemaLocalizationWidget<OClass> {

  public OClassLocalizationWidget(String id, IModel<OClass> model, final IModel<ODocument> widgetDocumentModel) {
    super(id, model, widgetDocumentModel);

  }

  @Override
  protected String getLocalizationKey(OClass oProperty) {
    return getModelObject().getName();
  }

  @Override
  protected IModel<String> getDefaultTitleModel() {
    return new ResourceModel("class.localization");
  }
}

代码示例来源:origin: OrienteerBAP/Orienteer

/**
 * Widget to show and modify {@link OIndex}ies of an {@link OClass}
 */
@Widget(id="class-indexes", domain="class", tab="configuration", order=20, autoEnable=true)
public class OClassIndexesWidget extends AbstractIndexesWidget<OClass> {
  
  private IModel<Boolean> showParentIndexesModel = Model.<Boolean>of(true);
  
  public OClassIndexesWidget(String id, IModel<OClass> model,
      IModel<ODocument> widgetDocumentModel) {
    super(id, model, widgetDocumentModel);
    iTable.addCommand(new ShowHideParentsCommand<OIndex<?>>(getModel(), iTable, showParentIndexesModel));
  }

  @Override
  protected String getCaptionResourceKey() {
    return "class.indexes";
  }

  @Override
  protected OIndexesDataProvider getIndexDataProvider() {
    return new OIndexesDataProvider(getModel(), showParentIndexesModel);
  }
}

代码示例来源:origin: OrienteerBAP/Orienteer

/**
 * BIRT report for single ODocument
 *
 */
@Widget(id="document-birt-report", domain="document", oClass=ODocumentBirtWidget.OCLASS_NAME, order=10, autoEnable=false)
public class ODocumentBirtWidget extends AbstractBirtWidget<ODocument>{
  
  /**
   * 
   */
  private static final long serialVersionUID = 1L;
  public static final String OCLASS_NAME = "ODocumentBirtWidget";

  public ODocumentBirtWidget(String id, IModel<ODocument> model, IModel<ODocument> widgetDocumentModel) {
    super(id, model, widgetDocumentModel,makeParameters(model));
  }
  
  private static Map<String, Object> makeParameters(IModel<ODocument> model){
    HashMap<String, Object> parameters = new HashMap<String,Object>();
    parameters.put("rid", model.getObject().getIdentity().toString());
    return parameters;
  }
}

代码示例来源:origin: OrienteerBAP/Orienteer

@Widget(id="class-custom", domain="class", tab="configuration", order=30, autoEnable=true)
public class OClassCustomPropertiesWidget extends AbstractSchemaCustomPropertiesWidget<OClass> {

代码示例来源:origin: OrienteerBAP/Orienteer

/**
 * Widget displays {@link AbstractTauchartsPanel} on document list 
 */
@Widget(id="taucharts-browse", domain="browse", order=10, autoEnable=false,oClass=AbstractTauchartsWidget.WIDGET_OCLASS_NAME)
public class TauchartsBrowseWidget extends AbstractTauchartsWidget<OClass>{
  private static final long serialVersionUID = 1L;

  public TauchartsBrowseWidget(String id, IModel<OClass> model, IModel<ODocument> widgetDocumentModel) {
    super(id, model, widgetDocumentModel);
  }
  
  @Override
  protected boolean isConfigValid() {
    return getWidgetDocument().field(TYPE_PROPERTY_NAME)!=null;
  }
  
  @Override
  protected AbstractTauchartsPanel newChartPanel(String id){
    return new AbstractTauchartsPanel(id, new TauchartsConfig(getWidgetDocument())) {

      @Override
      protected String getDefaultSql() {
        return "select from "+TauchartsBrowseWidget.this.getModelObject().getName();
      }
      
    };        
  }

}

代码示例来源:origin: OrienteerBAP/Orienteer

/**
 * Widget to show and modify all schema {@link OIndex}es
 */
@Widget(id="schema-indexes", domain="schema", tab="indexes", order=30, autoEnable=true)
public class SchemaIndexesWidget extends AbstractIndexesWidget<Void> {

  public SchemaIndexesWidget(String id, IModel<Void> model,
                IModel<ODocument> widgetDocumentModel) {
    super(id, model, widgetDocumentModel);
  }

  @Override
  protected String getCaptionResourceKey() {
    return "schema.all.indexes";
  }

  @Override
  protected OIndexesDataProvider getIndexDataProvider() {
    AbstractListModel<OIndex<?>> allIndexesModel = new AbstractListModel<OIndex<?>>() {
      @Override
      protected Collection<OIndex<?>> getData() {
        return (Collection<OIndex<?>>) OrientDbWebSession.get().getDatabase().getMetadata().getIndexManager().getIndexes();
      }
    };

    return new OIndexesDataProvider(allIndexesModel);
  }
}

代码示例来源:origin: OrienteerBAP/Orienteer

/**
 * Widget for calculated document
 */
@Widget(id="browse-calculated-documents", domain="browse", order=20, oClass = AbstractCalculatedDocumentsWidget.WIDGET_OCLASS_NAME, autoEnable=false)
public class CalculatedDocumentsWidget extends AbstractCalculatedDocumentsWidget<OClass> {

  public CalculatedDocumentsWidget(String id, IModel<OClass> model, IModel<ODocument> widgetDocumentModel) {
    super(id, model, widgetDocumentModel);
  }

  @Override
  protected OQueryDataProvider<ODocument> newDataProvider(String sql) {
    OQueryDataProvider<ODocument> provider = new OQueryDataProvider<ODocument>(sql);
    return provider;
  }

  @Override
  protected String getSql() {
    String sql = super.getSql();
    if(!Strings.isEmpty(sql)) return sql;
    else {
      String requiredClass = getWidgetDocument().field("class");
      return "select from "+(Strings.isEmpty(requiredClass)?getModelObject().getName():requiredClass);
    }
  }
}

代码示例来源:origin: OrienteerBAP/Orienteer

@Widget(id="wicket-console", domain="tools", tab = "console", autoEnable=true)
public class WicketConsoleWidget extends AbstractWidget<Void> {

代码示例来源:origin: OrienteerBAP/Orienteer

@Widget(id="property-custom", domain="property", tab="configuration", order=30, autoEnable=true)
public class OPropertyCustomPropertiesWidget extends
    AbstractSchemaCustomPropertiesWidget<OProperty> {

代码示例来源:origin: OrienteerBAP/Orienteer

@Widget(id="bpmn-modeler", domain="document", tab="modeler", selector=ProcessDefinitionEntityHandler.OCLASS_NAME, autoEnable=true)
public class BpmnModelerWidget extends AbstractModeAwareWidget<ODocument> {

代码示例来源:origin: OrienteerBAP/Orienteer

@Widget(domain="document",selector=OTask.TASK_CLASS, id=OTaskWidget.WIDGET_TYPE_ID, order=20, autoEnable=true)
public class OTaskWidget extends CalculatedDocumentsWidget{

代码示例来源:origin: OrienteerBAP/Orienteer

@Widget(domain="schema", tab="database", id="odatabase-configuration", order=40, autoEnable=true)
public class ODatabaseConfigurationWidget extends AbstractModeAwareWidget<Void> {

代码示例来源:origin: OrienteerBAP/Orienteer

@Widget(id="cluster-configuration", domain="cluster", tab="configuration", autoEnable=true)
public class OClusterConfigurationWidget extends AbstractModeAwareWidget<OCluster> {

代码示例来源:origin: OrienteerBAP/Orienteer

@Widget(id="document-pivot-table", domain="document", oClass=PivotTableModule.WIDGET_OCLASS_NAME, order=10, autoEnable=false)
public class ODocumentPivotTableWidget extends AbstractPivotTableWidget<ODocument> {

代码示例来源:origin: OrienteerBAP/Orienteer

@Widget(id="taucharts-document", domain="document", oClass=AbstractTauchartsWidget.WIDGET_OCLASS_NAME, order=10, autoEnable=false)
public class TauchartsDocumentWidget extends AbstractTauchartsWidget<ODocument>{
  private static final long serialVersionUID = 1L;

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com