當前位置: 首頁>>代碼示例>>Java>>正文


Java StateChangeEvent.hasPropertyChanged方法代碼示例

本文整理匯總了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();
}
 
開發者ID:tltv,項目名稱:gantt,代碼行數:23,代碼來源:SubStepConnector.java

示例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);
				}
			}
		});
}
 
開發者ID:hezamu,項目名稱:vaadincanvas,代碼行數:23,代碼來源:CanvasConnector.java

示例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);
	}
}
 
開發者ID:tilioteo,項目名稱:hypothesis,代碼行數:17,代碼來源:TimerLabelConnector.java

示例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);
				}
			}
		}
	}
}
 
開發者ID:maxschuster,項目名稱:Vaadin-LocalStorage,代碼行數:22,代碼來源:LocalStorageConnector.java

示例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();
    }
}
 
開發者ID:pontusbostrom,項目名稱:VaadinGraphvizComponent,代碼行數:14,代碼來源:VizComponentConnector.java

示例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);
    }
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:9,代碼來源:CubaFieldGroupConnector.java

示例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);
    }
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:9,代碼來源:CubaMultiUploadConnector.java

示例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);
    }
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:9,代碼來源:CubaRichTextAreaConnector.java

示例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);
    }
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:9,代碼來源:CubaLinkConnector.java

示例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);
    }
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:12,代碼來源:CubaOptionGroupConnector.java

示例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;
    }
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:9,代碼來源:CubaPopupButtonConnector.java

示例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());
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:32,代碼來源:CubaSuggestionFieldConnector.java

示例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;
    }
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:10,代碼來源:CubaSideMenuConnector.java

示例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());
    }
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:12,代碼來源:CubaResizableTextAreaWrapperConnector.java

示例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");
        }
    }
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:16,代碼來源:CubaButtonConnector.java


注:本文中的com.vaadin.client.communication.StateChangeEvent.hasPropertyChanged方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。