private void updateInnerUI(){ inner.requestLayout(); requestLayout(); }
private void addTabs(List<? extends Tab> addedTabs, int startIndex) { int i = 0; for (Tab tab : addedTabs) { // show header container if we are adding the 1st tab if (!header.isVisible()) { header.setVisible(true); } header.addTab(tab, startIndex + i++, false); addTabContentHolder(tab); final TabHeaderContainer tabHeaderContainer = header.getTabHeaderContainer(tab); if (tabHeaderContainer != null) { tabHeaderContainer.setVisible(true); tabHeaderContainer.inner.requestLayout(); } } }
private void updateInnerUI(){ inner.requestLayout(); requestLayout(); }
public void setDomainElement(Line line) { if (line == null) { this.line = null; setManaged(false); StyledTextSkin.this.rootContainer.requestLayout(); } else { if (line != this.line) { this.line = line; calculateContent(); } } }
private void addTabs(List<? extends Tab> addedTabs, int startIndex) { int i = 0; for (Tab tab : addedTabs) { // show header container if we are adding the 1st tab if (!header.isVisible()) { header.setVisible(true); } header.addTab(tab, startIndex + i++, false); addTabContentHolder(tab); final TabHeaderContainer tabHeaderContainer = header.getTabHeaderContainer(tab); if (tabHeaderContainer != null) { tabHeaderContainer.setVisible(true); tabHeaderContainer.inner.requestLayout(); } } }
public void calculateContent() { Line line = this.line; if (line != null) { setManaged(true); String newText = this.line.getLineIndex() + 1 + ""; //$NON-NLS-1$ String oldText = this.lineText.getText(); if (oldText == null) { oldText = ""; //$NON-NLS-1$ } this.lineText.setText(newText); this.markerLabel.setGraphic(getSkinnable().getLineRulerGraphicNodeFactory().call(line)); if (newText.length() != oldText.length()) { StyledTextSkin.this.rootContainer.requestLayout(); } StyledTextSkin.this.lineRuler.layout(); } } }
this.content.updateAnnotations(r); this.sortedLineRulerFlows.forEach(f -> f.update(r)); this.rootContainer.requestLayout(); }); getSkinnable().getAnnotationPresenter().forEach(installPresenter);