本文整理匯總了Java中com.google.gwt.dom.client.Style.clearLeft方法的典型用法代碼示例。如果您正苦於以下問題:Java Style.clearLeft方法的具體用法?Java Style.clearLeft怎麽用?Java Style.clearLeft使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.google.gwt.dom.client.Style
的用法示例。
在下文中一共展示了Style.clearLeft方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setSwipeDisabled
import com.google.gwt.dom.client.Style; //導入方法依賴的package包/類
public void setSwipeDisabled(boolean swipeDisabled) {
Style style = controller.getStyle();
Style elementStyle = getElement().getStyle();
style.setWidth(controller.getWidth(), Unit.PCT);
if (swipeDisabled) {
style.clearPosition();
style.clearTop();
style.clearLeft();
elementStyle.clearPosition();
} else {
style.setPosition(Position.ABSOLUTE);
style.setTop(0, Unit.PX);
style.setLeft(0, Unit.PX);
elementStyle.setPosition(Position.RELATIVE);
}
setSwipeLength();
}
示例2: unclipImage
import com.google.gwt.dom.client.Style; //導入方法依賴的package包/類
private void unclipImage() {
Style style = image.getElement().getStyle();
style.clearLeft();
style.clearTop();
style.clearWidth();
style.clearHeight();
}
示例3: cancelMouseMove
import com.google.gwt.dom.client.Style; //導入方法依賴的package包/類
private void cancelMouseMove() {
mouseMoveCanceled = true;
// reset and remove everything related to the event handling
Event.releaseCapture(getElement());
setFocus(false);
if (moveRegistration != null) {
moveRegistration.removeHandler();
moveRegistration = null;
}
mouseMoveStarted = false;
removeGlobalResizeStyle();
Style s = getElement().getStyle();
s.setZIndex(1);
// reset the position of the event
int dateCellWidth = getDateCellWidth();
int dayOffset = startXrelative / dateCellWidth;
s.clearLeft();
calendarItem.setStartTime(startDatetimeFrom);
calendarItem.setEndTime(startDatetimeTo);
long startFromMinutes = (startDatetimeFrom.getHours() * 60)
+ startDatetimeFrom.getMinutes();
long range = calendarItem.getRangeInMinutes();
startFromMinutes = calculateStartFromMinute(startFromMinutes,
startDatetimeFrom, startDatetimeTo, dayOffset);
if (startFromMinutes < 0) {
range += startFromMinutes;
}
updatePosition(startFromMinutes, range);
startY = -1;
startX = -1;
// to reset the event width
((DateCell) getParent()).recalculateItemWidths();
}