List of usage examples for com.google.gwt.user.client.ui DockLayoutPanel getWidgetDirection
public Direction getWidgetDirection(Widget child)
From source file:cc.alcina.framework.gwt.client.util.WidgetUtils.java
License:Apache License
private static boolean isDirectionalLayoutPanel(Widget panel, boolean horizontal) { if (panel instanceof DockLayoutPanel) { DockLayoutPanel dlp = (DockLayoutPanel) panel; Iterator<Widget> itr = dlp.iterator(); for (Widget widget : dlp) { Direction dir = dlp.getWidgetDirection(widget); if (horizontal && (dir == Direction.NORTH || dir == Direction.SOUTH)) { return false; }/*from www. j a va 2 s . com*/ if (!horizontal && (dir == Direction.WEST || dir == Direction.EAST)) { return false; } } return true; } return false; }