Java Code Examples for com.google.gwt.user.client.ui.RootPanel#setVisible()
The following examples show how to use
com.google.gwt.user.client.ui.RootPanel#setVisible() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SolverAllocatedMemory.java From unitime with Apache License 2.0 | 6 votes |
public void insert(final RootPanel panel) { String id = panel.getElement().getInnerText(); panel.getElement().setInnerText(null); panel.add(this); panel.setVisible(true); RPC.execute(new SolverAllocatedMemoryRpcRequest(id), new AsyncCallback<SolverAllocatedMemoryRpcResponse>() { @Override public void onFailure(Throwable caught) { } @Override public void onSuccess(SolverAllocatedMemoryRpcResponse result) { setWidget(new Label(result.getValue())); } }); }
Example 2
Source File: ReservationTable.java From unitime with Apache License 2.0 | 6 votes |
public void insert(final RootPanel panel) { initCallbacks(); iOfferingId = Long.valueOf(panel.getElement().getInnerText()); if (ReservationCookie.getInstance().getReservationCoursesDetails()) { refresh(); } else { clear(false); iHeader.clearMessage(); iHeader.setCollapsible(false); } panel.getElement().setInnerText(null); panel.add(this); panel.setVisible(true); addReservationClickHandler(new ReservationClickHandler() { @Override public void onClick(ReservationClickedEvent evt) { ToolBox.open(GWT.getHostPageBaseURL() + "gwt.jsp?page=reservation&id=" + evt.getReservation().getId() + "&reservations=" + getReservationIds()); } }); }
Example 3
Source File: TeachingAssignmentsWidget.java From unitime with Apache License 2.0 | 5 votes |
public void insert(final RootPanel panel) { iInstructorId = panel.getElement().getInnerText(); if (InstructorCookie.getInstance().isShowTeachingAssignments()) { refresh(); } panel.getElement().setInnerText(null); panel.add(this); panel.setVisible(true); }
Example 4
Source File: TeachingRequestsWidget.java From unitime with Apache License 2.0 | 5 votes |
public void insert(final RootPanel panel) { iOfferingId = Long.valueOf(panel.getElement().getInnerText()); if (InstructorCookie.getInstance().isShowTeachingRequests()) { refresh(); } panel.getElement().setInnerText(null); panel.add(this); panel.setVisible(true); }
Example 5
Source File: CourseCurriculaTable.java From unitime with Apache License 2.0 | 5 votes |
public void insert(final RootPanel panel) { initCallbacks(); iOfferingId = Long.valueOf(panel.getElement().getInnerText()); iCourseName = null; if (CurriculumCookie.getInstance().getCurriculaCoursesDetails()) { refresh(); } else { iHeader.clearMessage(); iHeader.setCollapsible(false); } panel.getElement().setInnerText(null); panel.add(this); panel.setVisible(true); }
Example 6
Source File: EnrollmentTable.java From unitime with Apache License 2.0 | 5 votes |
public void insert(final RootPanel panel) { iOfferingId = Long.valueOf(panel.getElement().getInnerText()); if (iOfferingId >= 0 && iShowFilter) iHeader.setHeaderTitle(MESSAGES.studentsTable()); if (SectioningCookie.getInstance().getEnrollmentCoursesDetails()) { refresh(); } else { clear(); iHeader.clearMessage(); iHeader.setCollapsible(false); } panel.getElement().setInnerText(null); panel.add(this); panel.setVisible(true); }
Example 7
Source File: UniTimeMobileMenu.java From unitime with Apache License 2.0 | 5 votes |
public void insert(final RootPanel panel) { if ("hide".equals(Window.Location.getParameter("menu"))) { panel.setVisible(false); } else { attach(panel); RootPanel.get("UniTimeGWT:MobileMenuPanel").add(iStackPanel); } }
Example 8
Source File: RoomNoteChanges.java From unitime with Apache License 2.0 | 4 votes |
public void insert(final RootPanel panel) { load(Long.valueOf(panel.getElement().getInnerText())); panel.getElement().setInnerText(null); panel.add(this); panel.setVisible(true); }
Example 9
Source File: UniTimeVersion.java From unitime with Apache License 2.0 | 4 votes |
public void insert(final RootPanel panel) { panel.add(this); panel.setVisible(true); }
Example 10
Source File: UniTimeSideBar.java From unitime with Apache License 2.0 | 4 votes |
public void insert(final RootPanel panel) { if ("hide".equals(Window.Location.getParameter("menu"))) panel.setVisible(false); else attach(panel); }
Example 11
Source File: UniTimeMenuBar.java From unitime with Apache License 2.0 | 4 votes |
public void insert(final RootPanel panel) { if ("hide".equals(Window.Location.getParameter("menu"))) panel.setVisible(false); else attach(panel); }
Example 12
Source File: UniTimePageHeader.java From unitime with Apache License 2.0 | 4 votes |
public void insert(final RootPanel panel) { if (panel.getWidgetCount() > 0) return; panel.add(iHeader); panel.setVisible(true); }