setTocContent visibility
This commit is contained in:
parent
1f3b3c2be1
commit
2e2ecfa41d
|
@ -168,6 +168,7 @@ public class ProjectViewer extends Composite {
|
||||||
cv.setExpandViewButtonVisible(false);
|
cv.setExpandViewButtonVisible(false);
|
||||||
cv.setRelationshipsButtonVisible(false);
|
cv.setRelationshipsButtonVisible(false);
|
||||||
cv.setAddLayersToMapVisible(false);
|
cv.setAddLayersToMapVisible(false);
|
||||||
|
cv.setTocContentVisible(true);
|
||||||
int width = Window.getClientWidth() * 75 / 100;
|
int width = Window.getClientWidth() * 75 / 100;
|
||||||
int height = Window.getClientHeight() * 70 / 100;
|
int height = Window.getClientHeight() * 70 / 100;
|
||||||
|
|
||||||
|
@ -238,14 +239,15 @@ public class ProjectViewer extends Composite {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(ClickEvent event) {
|
public void onClick(ClickEvent event) {
|
||||||
boolean visible = toc_list_container.isVisible();
|
boolean visible = toc_list_container.isVisible();
|
||||||
if(visible) {
|
setTocContentVisible(!visible);
|
||||||
toc_list_container.setVisible(false);
|
|
||||||
reduceToc.setIcon(IconType.PLUS_SIGN_ALT);
|
// if (visible) {
|
||||||
}
|
// toc_list_container.setVisible(false);
|
||||||
else {
|
// reduceToc.setIcon(IconType.PLUS_SIGN_ALT);
|
||||||
toc_list_container.setVisible(true);
|
// } else {
|
||||||
reduceToc.setIcon(IconType.MINUS_SIGN_ALT);
|
// toc_list_container.setVisible(true);
|
||||||
}
|
// reduceToc.setIcon(IconType.MINUS_SIGN_ALT);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -277,6 +279,18 @@ public class ProjectViewer extends Composite {
|
||||||
toc_list_anchors.appendChild(new HTML("<li>" + htmlAnchor + "</li>").getElement());
|
toc_list_anchors.appendChild(new HTML("<li>" + htmlAnchor + "</li>").getElement());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void setTocContentVisible(boolean bool) {
|
||||||
|
|
||||||
|
toc_list_container.setVisible(bool);
|
||||||
|
|
||||||
|
if (bool) {
|
||||||
|
reduceToc.setIcon(IconType.MINUS_SIGN_ALT);
|
||||||
|
} else {
|
||||||
|
reduceToc.setIcon(IconType.PLUS_SIGN_ALT);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the centroid map.
|
* Adds the centroid map.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue