当前位置: 首页>>代码示例>>Java>>正文


Java InitialState类代码示例

本文整理汇总了Java中org.jboss.errai.databinding.client.api.InitialState的典型用法代码示例。如果您正苦于以下问题:Java InitialState类的具体用法?Java InitialState怎么用?Java InitialState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


InitialState类属于org.jboss.errai.databinding.client.api包,在下文中一共展示了InitialState类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: updateMetaData

import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
 * Called when the deployment is loaded.
 * @param deployment
 */
protected void updateMetaData(DeploymentBean deployment) {
    this.deployment.setModel(deployment, InitialState.FROM_MODEL);
    deploymentLoading.getElement().addClassName("hide"); //$NON-NLS-1$
    if (deployment.hasMavenInfo()) {
        mavenPropsWrapper.removeClassName("hide"); //$NON-NLS-1$
    } else {
        mavenPropsWrapper.addClassName("hide"); //$NON-NLS-1$
    }
    pageContent.removeClassName("hide"); //$NON-NLS-1$
}
 
开发者ID:Governance,项目名称:dtgov,代码行数:15,代码来源:DeploymentDetailsPage.java

示例2: updateTaskMetaData

import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
 * Called when the task is loaded.
 * @param task
 */
protected void updateTaskMetaData(TaskBean task) {
    this.task.setModel(task, InitialState.FROM_MODEL);
    taskLoading.getElement().addClassName("hide"); //$NON-NLS-1$
    pageContent.removeClassName("hide"); //$NON-NLS-1$
    if (task.getTaskForm() != null) {
        taskFormWrapper.setHTML(task.getTaskForm());
        taskFormWrapper.setData(task.getTaskData());
    } else {
        taskFormWrapper.setHTML(""); //$NON-NLS-1$
        taskFormWrapper.setData(new HashMap<String, String>());
    }
}
 
开发者ID:Governance,项目名称:dtgov,代码行数:17,代码来源:TaskDetailsPage.java

示例3: updateMetaData

import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
   * Called when the situation is loaded.
   * @param situation
   */
  protected void updateMetaData(SituationBean situation) {
      this.situation.setModel(situation, InitialState.FROM_MODEL);
      severity.setStyleName("icon"); //$NON-NLS-1$
      severity.addStyleName("details-icon"); //$NON-NLS-1$
      severity.addStyleName("icon-severity-" + situation.getSeverity()); //$NON-NLS-1$
      loading.getElement().addClassName("hide"); //$NON-NLS-1$
      pageContent.removeClassName("hide"); //$NON-NLS-1$
      this.messageTabAnchor.setVisible(situation.hasMessage());
      if (situation.hasMessage()) {
          messageEditor.setValue(situation.getMessage().getContent());
      } else {
          messageEditor.setValue(""); //$NON-NLS-1$
      }
      resubmitButton.setEnabled(situation.isResubmitPossible());
      messageEditor.setReadOnly(!situation.isResubmitPossible());
      if (situation.getResubmitBy() != null) {
          resubmitDetails.setText(i18n.format("situation-details.resubmit-details",
                  situation.getResubmitBy(), situation.getResubmitAt(), situation.getResubmitResult()));
          resubmitDetails.setTitle(situation.getResubmitErrorMessage());
      } else {
          resubmitDetails.setTitle("");
          resubmitDetails.setText("");
      }
      if (situation.isResubmitError()) {
          resubmitDetails.getElement().addClassName("text-error"); //$NON-NLS-1$
      } else {
          resubmitDetails.getElement().removeClassName("text-error"); //$NON-NLS-1$
      }
if (situation.isAssignedToCurrentUser() || (situation.getAssignedTo() != null && situation.isTakeoverPossible())) {
	if (situation.isAssignedToCurrentUser()) {
		assignButton.getElement().addClassName("hide");
	} else {
		assignButton.getElement().removeClassName("hide");
	}
	closeButton.getElement().removeClassName("hide"); //$NON-NLS-1$
	ResolutionState resolutionState = ResolutionState.valueOf(situation.getResolutionState());
	if (ResolutionState.UNRESOLVED == resolutionState
			|| ResolutionState.WAITING == resolutionState
			|| ResolutionState.REOPENED == resolutionState) {
		startButton.getElement().removeClassName("hide");
	} else {
		startButton.getElement().addClassName("hide");
	}
	if (ResolutionState.IN_PROGRESS == resolutionState) {
		stopButton.getElement().removeClassName("hide");
		resolveButton.getElement().removeClassName("hide");
	} else {
		resolveButton.getElement().addClassName("hide");
		stopButton.getElement().addClassName("hide");
	}
	if (ResolutionState.RESOLVED == resolutionState) {
		reopenButton.getElement().removeClassName("hide");
	} else {
		reopenButton.getElement().addClassName("hide");
	}
      } else {
      	closeButton.getElement().addClassName("hide"); 
      	startButton.getElement().addClassName("hide");
      	reopenButton.getElement().addClassName("hide");
      	stopButton.getElement().addClassName("hide");
      	resolveButton.getElement().addClassName("hide");
      	assignButton.getElement().removeClassName("hide"); 
      }
  }
 
开发者ID:Governance,项目名称:rtgov-ui,代码行数:69,代码来源:SituationDetailsPage.java

示例4: updateMetaData

import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
 * Called when the reference is loaded.
 * @param reference
 */
protected void updateMetaData(ReferenceBean reference) {
    this.reference.setModel(reference, InitialState.FROM_MODEL);
    loading.getElement().addClassName("hide"); //$NON-NLS-1$
    pageContent.removeClassName("hide"); //$NON-NLS-1$
}
 
开发者ID:Governance,项目名称:rtgov-ui,代码行数:10,代码来源:ReferenceDetailsPage.java

示例5: updateMetaData

import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
 * Called when the service is loaded.
 * @param service
 */
protected void updateMetaData(ServiceBean service) {
    this.service.setModel(service, InitialState.FROM_MODEL);
    loading.getElement().addClassName("hide"); //$NON-NLS-1$
    pageContent.removeClassName("hide"); //$NON-NLS-1$
}
 
开发者ID:Governance,项目名称:rtgov-ui,代码行数:10,代码来源:ServiceDetailsPage.java

示例6: setModel

import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void setModel(T model) {
	dataBinder.setModel(model, InitialState.FROM_MODEL);
}
 
开发者ID:pd-pmueller,项目名称:cpa,代码行数:8,代码来源:AbstractListWidget.java

示例7: setModel

import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void setModel(PortableConference model) {
	dataBinder.setModel(model, InitialState.FROM_MODEL);
	resolveTalks();
}
 
开发者ID:pd-pmueller,项目名称:cpa,代码行数:9,代码来源:ConferenceEditWidget.java

示例8: setModel

import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void setModel(PortableConference model) {
	dataBinder.setModel(model, InitialState.FROM_MODEL);
}
 
开发者ID:pd-pmueller,项目名称:cpa,代码行数:8,代码来源:ConferenceListWidget.java

示例9: setValue

import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
 * @see com.google.gwt.user.client.ui.HasValue#setValue(java.lang.Object, boolean)
 */
@Override
public void setValue(DerivedArtifactsBean value, boolean fireEvents) {
    this.value.setModel(value, InitialState.FROM_MODEL);
}
 
开发者ID:Governance,项目名称:dtgov,代码行数:8,代码来源:ExpandedArtifactSummary.java

示例10: setValue

import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
 * @see com.google.gwt.user.client.ui.HasValue#setValue(java.lang.Object, boolean)
 */
@Override
public void setValue(HistoryEventSummaryBean value, boolean fireEvents) {
    this.value.setModel(value, InitialState.FROM_MODEL);
    setIcon(value);
}
 
开发者ID:Governance,项目名称:dtgov,代码行数:9,代码来源:HistoryEventItem.java

示例11: setValue

import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
 * @see com.google.gwt.user.client.ui.HasValue#setValue(java.lang.Object, boolean)
 */
@Override
public void setValue(ExpandedArtifactSummaryBean value, boolean fireEvents) {
    this.value.setModel(value, InitialState.FROM_MODEL);
    this.browseButton.setHref(configService.getUiConfig().createSrampUiUrl("details", "uuid", value.getUuid())); //$NON-NLS-1$ //$NON-NLS-2$
}
 
开发者ID:Governance,项目名称:dtgov,代码行数:9,代码来源:ExpandedArtifactItem.java

示例12: update

import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
 * Called when the history is loaded.
 * @param deployment
 */
protected void update(ExpandedArtifactsBean bean) {
    loading.getElement().addClassName("hide"); //$NON-NLS-1$
    pageContent.removeClassName("hide"); //$NON-NLS-1$
    this.deploymentContentsBean.setModel(bean, InitialState.FROM_MODEL);
}
 
开发者ID:Governance,项目名称:dtgov,代码行数:10,代码来源:DeploymentContentsPage.java

示例13: update

import org.jboss.errai.databinding.client.api.InitialState; //导入依赖的package包/类
/**
 * Called when the history is loaded.
 * @param deployment
 */
protected void update(ArtifactHistoryBean bean) {
    this.historyBean.setModel(bean, InitialState.FROM_MODEL);
    historyLoading.getElement().addClassName("hide"); //$NON-NLS-1$
    pageContent.removeClassName("hide"); //$NON-NLS-1$
}
 
开发者ID:Governance,项目名称:dtgov,代码行数:10,代码来源:DeploymentHistoryPage.java


注:本文中的org.jboss.errai.databinding.client.api.InitialState类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。