List of usage examples for com.google.gwt.query.client GQuery siblings
public GQuery siblings(String... selectors)
From source file:be.dramaix.ai.slidingpuzzle.client.ConfigPanel.java
License:Apache License
private void onDimensionChange(int newDimension) { GQuery algorithmSelector = SELECTOR.getAlgorithmSelectElement(); GQuery algorithmSelectorSpan = algorithmSelector.siblings("span"); GQuery heuristicSelectorRow = SELECTOR.getHeuristicSelectElement().parent().parent(); if (newDimension == 4) { algorithmType = AlgorithmType.IDA_STAR; algorithmSelector.val(AlgorithmType.IDA_STAR.name()); algorithmSelector.hide();/* w w w. ja v a2 s .c o m*/ algorithmSelectorSpan.text(AlgorithmType.IDA_STAR.getLabel()); heuristicSelectorRow.show(); } else { algorithmSelectorSpan.text(""); algorithmSelector.show(); } SELECTOR.getSolveButton().hide(); SELECTOR.getPlayButton().hide(); }