.getColumn2(); col++) { for (int row = 0; row < gl.getRows(); row++) { Component c = gl.getComponent(col, row); if (c != null) { if (!hasRelativeWidth(c)) {
protected Component getDetailComponent() { return grid.getComponent(0, 1); } }
protected Component getDetailComponent() { return grid.getComponent(1, 0); }
.getRow2(); row++) { for (int column = 0; column < gl.getColumns(); column++) { Component c = gl.getComponent(column, row); if (c != null) { if (!hasRelativeHeight(c)) {
protected void setDetailComponent(Component detail) { if(grid.getComponent(1, 1) != null) { grid.removeComponent(1, 1); } if(detail != null) { grid.addComponent(detail, 1, 1, 1, 2); } }
protected void setDetailComponent(Component detail) { if (grid.getComponent(0, 1) != null) { grid.removeComponent(0, 1); } if (detail != null) { grid.addComponent(detail, 0, 1); } }
/** * Updates the preview images on timeframe changes. */ private void updatePreview() { /** * getting the timeframe values */ int timeFrameValue; int timeFrameType; try { timeFrameValue = Integer.parseInt(m_timeFrameValue.getValue().toString()); } catch (NumberFormatException numberFormatException) { timeFrameValue = 1; } try { timeFrameType = Integer.parseInt(m_timeFrameType.getValue().toString()); } catch (NumberFormatException numberFormatException) { timeFrameType = Calendar.HOUR; } for (int y = 0; y < m_gridLayout.getRows(); y++) { for (int x = 0; x < m_gridLayout.getColumns(); x++) { if (m_gridLayout.getComponent(x, y) != null) { ((RrdGraphEntry) m_gridLayout.getComponent(x, y)).setPreviewTimeFrame(timeFrameType, timeFrameValue); } } } }
/** * Updates the preview images on timeframe changes. */ private void updatePreview() { /** * getting the timeframe values */ int timeFrameValue; int timeFrameType; try { timeFrameValue = Integer.parseInt(m_timeFrameValue.getValue().toString()); } catch (NumberFormatException numberFormatException) { timeFrameValue = 1; } try { timeFrameType = Integer.parseInt(m_timeFrameType.getValue().toString()); } catch (NumberFormatException numberFormatException) { timeFrameType = Calendar.HOUR; } for (int y = 0; y < m_gridLayout.getRows(); y++) { for (int x = 0; x < m_gridLayout.getColumns(); x++) { if (m_gridLayout.getComponent(x, y) != null) { ((RrdGraphEntry) m_gridLayout.getComponent(x, y)).setPreviewTimeFrame(timeFrameType, timeFrameValue); } } } }
protected void setCurrentEditor(AttachmentEditor editor) { AttachmentEditorComponent component = editor.getEditor(null, taskId, processInstanceId); this.currentEditor = component; detailLayout.removeComponent(detailLayout.getComponent(0, 0)); if (currentEditor != null) { currentEditor.setSizeFull(); detailLayout.addComponent(currentEditor, 0, 0); okButton.setEnabled(true); } else { okButton.setEnabled(false); } }
public void valueChange(ValueChangeEvent event) { String name = (String) event.getProperty().getValue(); if (name != null) { currentSelection = name; currentComponent = components.get(name); selectedComponentLayout.removeComponent(selectedComponentLayout.getComponent(0, 0)); if (currentComponent != null) { currentComponent.setSizeFull(); selectedComponentLayout.addComponent(currentComponent, 0, 0); okButton.setEnabled(true); } else { okButton.setEnabled(false); } } } });
RrdGraphEntry rrdGraphEntry = (RrdGraphEntry) m_gridLayout.getComponent(x, y); m_dashletSpec.getParameters().put("nodeLabel" + i, rrdGraphEntry.getNodeLabel()); m_dashletSpec.getParameters().put("nodeId" + i, rrdGraphEntry.getNodeId());
RrdGraphEntry rrdGraphEntry = (RrdGraphEntry) m_gridLayout.getComponent(x, y); m_dashletSpec.getParameters().put("nodeLabel" + i, rrdGraphEntry.getNodeLabel()); m_dashletSpec.getParameters().put("nodeId" + i, rrdGraphEntry.getNodeId());
.getComponent(0, 0)).isEqualTo(topLeft); assertThat(view.getGridLayout() .getComponent(1, 0)).isEqualTo(topCentre); assertThat(view.getGridLayout() .getComponent(2, 0)).isEqualTo(topRight); assertThat(view.getGridLayout() .getComponent(0, 1)).isEqualTo(middleLeft); assertThat(view.getGridLayout() .getComponent(1, 1)).isEqualTo(centreCell); assertThat(view.getGridLayout() .getComponent(2, 1)).isEqualTo(middleRight); assertThat(view.getGridLayout() .getComponent(0, 2)).isEqualTo(bottomLeft); assertThat(view.getGridLayout() .getComponent(1, 2)).isEqualTo(bottomCentre); assertThat(view.getGridLayout() .getComponent(2, 2)).isEqualTo(bottomRight);
for (int x = 0; x < m_gridLayout.getColumns(); x++) { if (m_gridLayout.getComponent(x, y) == null) { RrdGraphEntry rrdGraphEntry = new RrdGraphEntry(m_nodeDao, m_rrdGraphHelper, x, y); rrdGraphEntry.setPreviewTimeFrame(timeFrameType, timeFrameValue); RrdGraphEntry rrdGraphEntry = (RrdGraphEntry) m_gridLayout.getComponent(x, y);
for (int x = 0; x < m_gridLayout.getColumns(); x++) { if (m_gridLayout.getComponent(x, y) == null) { RrdGraphEntry rrdGraphEntry = new RrdGraphEntry(m_nodeDao, m_rrdGraphHelper, x, y); rrdGraphEntry.setPreviewTimeFrame(timeFrameType, timeFrameValue); RrdGraphEntry rrdGraphEntry = (RrdGraphEntry) m_gridLayout.getComponent(x, y);
if (m_gridLayout.getComponent(x, y) == null) { RrdGraphEntry rrdGraphEntry = new RrdGraphEntry(m_nodeDao, m_rrdGraphHelper, x, y);
if (m_gridLayout.getComponent(x, y) == null) { RrdGraphEntry rrdGraphEntry = new RrdGraphEntry(m_nodeDao, m_rrdGraphHelper, x, y);