本文整理匯總了Java中com.vaadin.client.communication.StateChangeEvent.hasPropertyChanged方法的典型用法代碼示例。如果您正苦於以下問題:Java StateChangeEvent.hasPropertyChanged方法的具體用法?Java StateChangeEvent.hasPropertyChanged怎麽用?Java StateChangeEvent.hasPropertyChanged使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.vaadin.client.communication.StateChangeEvent
的用法示例。
在下文中一共展示了StateChangeEvent.hasPropertyChanged方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
if (!(getParent() instanceof StepConnector)) {
return;
}
if (step == null) {
step = ((StepConnector) getParent()).getWidget();
getWidget().setOwner(step);
}
if (stateChangeEvent.hasPropertyChanged("step")) {
getWidget().setStep(getState().step);
}
if (!getWidget().getElement().hasParentElement()) {
step.add(getWidget());
getWidget().getOwner().updateStylesForSubSteps();
}
getWidget().updateWidth();
}
示例2: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
// Only add a mouse move handler if someone is interested in, as
// otherwise
// they would generate a large amount of server side traffic.
if (stateChangeEvent.hasPropertyChanged("listenMouseMove")
&& getState().listenMouseMove)
getWidget().addMouseMoveHandler(new MouseMoveHandler() {
@Override
public void onMouseMove(MouseMoveEvent event) {
if (getState().listenMouseMove) {
MouseEventDetails med = MouseEventDetailsBuilder
.buildMouseEventDetails(event.getNativeEvent(),
getWidget().getElement());
rpc.mouseMoved(med);
}
}
});
}
示例3: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
if (stateChangeEvent.hasPropertyChanged("timeFormat")) {
getWidget().setTimeFormat(getState().timeFormat);
}
if (stateChangeEvent.hasPropertyChanged("updateInterval")) {
getWidget().setUpdateInterval(getState().updateInterval);
}
if (stateChangeEvent.hasPropertyChanged("timer")) {
getWidget().registerTimer(getState().timer);
}
}
示例4: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
if (stateChangeEvent.hasPropertyChanged("registeredEventListeners")) {
Set<String> listeners = getState().registeredEventListeners;
if (listeners != null) {
// Fire update events when a listener is defined
if (listeners.contains(ItemUpdateEvent.ITEM_UPDATE_EVENT_IDENTIFIER)) {
if (!storageEventHandler.isAttached()) {
Storage.addStorageEventHandler(storageEventHandler);
storageEventHandler.setAttached(true);
}
} else {
if (storageEventHandler.isAttached()) {
Storage.removeStorageEventHandler(storageEventHandler);
storageEventHandler.setAttached(true);
}
}
}
}
}
示例5: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
if (stateChangeEvent.hasPropertyChanged("graph")
|| stateChangeEvent.hasPropertyChanged("graphType")
|| stateChangeEvent.hasPropertyChanged("name")
|| stateChangeEvent.hasPropertyChanged("params")
|| stateChangeEvent.hasPropertyChanged("nodeParams")
|| stateChangeEvent.hasPropertyChanged("edgeParams")) {
updateGraph();
}
}
示例6: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
if (stateChangeEvent.hasPropertyChanged("borderVisible")) {
getWidget().setBorderVisible(getState().borderVisible);
}
}
示例7: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
if (stateChangeEvent.hasPropertyChanged("buttonEnabled")) {
getWidget().setButtonEnabled(getState().buttonEnabled);
}
}
示例8: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
if (stateChangeEvent.hasPropertyChanged("localeMap")) {
getWidget().setLocaleMap(getState().localeMap);
}
}
示例9: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
if (stateChangeEvent.hasPropertyChanged("rel")) {
getWidget().setRel(getState().rel);
}
}
示例10: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
if (stateChangeEvent.hasPropertyChanged("orientation")) {
if (getState().orientation == OptionGroupOrientation.VERTICAL)
getWidget().removeStyleDependentName("horizontal");
else
getWidget().addStyleDependentName(HORIZONTAL_ORIENTAION_STYLE);
}
}
示例11: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
if (stateChangeEvent.hasPropertyChanged("customLayout")) {
getWidget().customLayout = getState().customLayout;
}
}
示例12: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
CubaSuggestionFieldWidget widget = getWidget();
if (stateChangeEvent.hasPropertyChanged("minSearchStringLength")) {
widget.setMinSearchStringLength(getState().minSearchStringLength);
}
if (stateChangeEvent.hasPropertyChanged("asyncSearchDelayMs")) {
widget.setAsyncSearchDelayMs(getState().asyncSearchDelayMs);
}
if (stateChangeEvent.hasPropertyChanged("text")) {
updateWidgetValue(widget);
}
if (stateChangeEvent.hasPropertyChanged("inputPrompt")) {
widget.setInputPrompt(getState().inputPrompt);
}
if (stateChangeEvent.hasPropertyChanged("popupStylename")) {
widget.setPopupStyleName(getState().popupStylename);
}
if (stateChangeEvent.hasPropertyChanged("popupWidth")) {
widget.setPopupWidth(getState().popupWidth);
}
widget.setReadonly(isReadOnly());
}
示例13: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
if (stateChangeEvent.hasPropertyChanged("selectOnTrigger")) {
getWidget().selectOnTrigger = getState().selectOnClick;
getWidget().singleExpandedMenu = getState().singleExpandedMenu;
}
}
示例14: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
if (stateChangeEvent.hasPropertyChanged("resizableDirection")) {
getWidget().setResizableDirection(getState().resizableDirection);
}
if (stateChangeEvent.hasPropertyChanged("enabled")) {
getWidget().setEnabled(isEnabled());
}
}
示例15: onStateChanged
import com.vaadin.client.communication.StateChangeEvent; //導入方法依賴的package包/類
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
stopResponsePending();
super.onStateChanged(stateChangeEvent);
if (stateChangeEvent.hasPropertyChanged("caption")) {
String text = getState().caption;
if (text == null || "".equals(text)) {
getWidget().addStyleDependentName("empty-caption");
} else {
getWidget().removeStyleDependentName("empty-caption");
}
}
}