javax.swing.JScrollPane.isVisible()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(165)

本文整理了Java中javax.swing.JScrollPane.isVisible()方法的一些代码示例,展示了JScrollPane.isVisible()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.isVisible()方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:isVisible

JScrollPane.isVisible介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-reporting

/**
 * Checks whether the scroll pane of the exception stack trace area is visible.
 *
 * @return true, if the scroller is visible, false otherwise.
 */
protected boolean isScrollerVisible() {
 return scroller.isVisible();
}

代码示例来源:origin: xyz.cofe/gui.swing

public boolean isFilterTableVisible(){
  return filterScroll.isVisible();
}
public void setFilterTableVisible(boolean v){

代码示例来源:origin: xyz.cofe/gui.swing

public boolean isDirectTableVisible(){
  return directScroll.isVisible();
}
public void setDirectTableVisible(boolean v)

代码示例来源:origin: jawi/ols

@Override
 public void actionPerformed( final ActionEvent aEvent )
 {
  setDetailsVisible( !JErrorDialog.this.detailsScrollPane.isVisible() );
 }
} );

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction(jsDoc = VISIBLE_JSDOC)
@Override
public boolean getVisible() {
  return super.isVisible();
}

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

private void botaoAbrirStackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoAbrirStackActionPerformed
  scrollStackTrace.setVisible(!scrollStackTrace.isVisible());
  telaCustomBorder.pack();
}//GEN-LAST:event_botaoAbrirStackActionPerformed

代码示例来源:origin: MegaMek/mekhq

/**
   * Helper method that hides or reveals the force editor section.
   */
  public void toggleForcePanelVisibility() {
    forcedPanel.setVisible(!forcedPanel.isVisible());
    forceScrollPane.setVisible(!forceScrollPane.isVisible() && !scenarioTemplate.scenarioForces.isEmpty());
  }
}

代码示例来源:origin: freeplane/freeplane

@Override
public boolean isVisible() {
  final Component view = getViewport().getView();
  return super.isVisible() && view != null && view.isVisible();
}

代码示例来源:origin: org.jacorb/jacorb

/**
 * Shows the POA Table in right part of SplitPane.
 */
private void showPOATable(){
if (! m_poa_view.isVisible()){
  m_server_view.setVisible(false);
  m_poa_view.setVisible(true);
  pack();
  m_table_panel.repaint();
}
}

代码示例来源:origin: org.jacorb/jacorb

/**
 * Shows the Server Table in right part of SplitPane.
 */
private void showServerTable(){
if (! m_server_view.isVisible()){
  m_poa_view.setVisible(false);
  m_server_view.setVisible(true);
  pack();
  m_table_panel.repaint();
}
}

代码示例来源:origin: Multibit-Legacy/multibit-hd

@Override
 public void actionPerformed(ActionEvent e) {
  // Toggle the visibility of the current log details
  currentLogLabel.setVisible(!currentLogLabel.isVisible());
  currentLogScrollPane.setVisible(!currentLogScrollPane.isVisible());
  pack();
 }
};

代码示例来源:origin: nz.ac.waikato.cms.moa/moa

public void run(){
    if(!scrollPaneText.isVisible())
    {
      topWrapper.remove(scrollPaneTable);
      scrollPaneTable.setVisible(false);
      topWrapper.add(scrollPaneText, BorderLayout.CENTER);
      scrollPaneText.setVisible(true);
      topWrapper.validate();
    }
    errorTextField.setText(failedTaskReportString);
    errorTextField.repaint();
  }
}

代码示例来源:origin: net.imagej/imagej-ui-swing

@Override
  public void run() {
    if (detailsScrollPane.isVisible() || latestDetail == null) progress
      .setString(title);
    else progress.setString(title + ": " + latestDetail.getString());
  }
});

代码示例来源:origin: net.imagej/imagej-ui-swing

@Override
public void itemDone(final Object item) {
  checkIfCanceled();
  if (itemUpdatesTooFast() && !detailsScrollPane.isVisible()) return;
  SwingTools.invokeOnEDT(new Runnable() {
    @Override
    public void run() {
      latestDetail.setValue(latestDetail.getMaximum());
    }
  });
}

代码示例来源:origin: net.imagej/imagej-ui-swing

@Override
  public void run() {
    final boolean show = !detailsScrollPane.isVisible();
    detailsScrollPane.setVisible(show);
    detailsScrollPane.invalidate();
    detailsToggle.setText(show ? "Hide Details" : "Show Details");
    setTitle();
    final Dimension dimension = getSize();
    if (toggleHeight == -1) toggleHeight = dimension.height + 100;
    setSize(new Dimension(dimension.width, toggleHeight));
    toggleHeight = dimension.height;
  }
});

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-project

private void setWarning(boolean enabled) {
  boolean visible = enabled && isProjectDifferentFromSources();
  if (projectFolderScrollPane.isVisible() != visible) {
    projectFolderScrollPane.setVisible(visible);
    revalidate();
    repaint();
  }
}

代码示例来源:origin: net.imagej/imagej-ui-swing

@Override
public void addItem(final Object item) {
  checkIfCanceled();
  details.addDetail(item.toString());
  if (itemUpdatesTooFast() && !detailsScrollPane.isVisible()) return;
  setTitle();
  validate();
  repaint();
}

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void testUpdateNonEmptyBucket_toEmptyBucket() {
 // setup bucket with blobs
 initEditorWithBlobs(binaryBlob);
 JScrollPane bucketScrollPane = editorPanel.getBucketContentScrollPane();
 JPanel noBlobsPanel = editorPanel.getMessagePanel();
 JLabel noBlobsLabel = editorPanel.getMessageLabel();
 assertTrue(bucketScrollPane.isVisible());
 assertFalse(noBlobsPanel.isVisible());
 // remove blobs and update
 setBlobs();
 editorPanel.updateTableModel("");
 assertFalse(bucketScrollPane.isVisible());
 assertTrue(noBlobsPanel.isVisible());
 assertThat(noBlobsLabel.getText()).isEqualTo("No files or directories found in this bucket");
}

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void testUpdateNonEmptyDirectory_toEmptyDirectory() {
 // setup bucket directory with blobs
 initEditorWithBlobs(directoryBlob, binaryBlobInDirectory);
 JScrollPane bucketScrollPane = editorPanel.getBucketContentScrollPane();
 JPanel noBlobsPanel = editorPanel.getMessagePanel();
 JLabel noBlobsLabel = editorPanel.getMessageLabel();
 assertTrue(bucketScrollPane.isVisible());
 assertFalse(noBlobsPanel.isVisible());
 // remove blobs from the directory and update
 setBlobs(directoryBlob);
 editorPanel.updateTableModel(DIR_NAME);
 assertFalse(bucketScrollPane.isVisible());
 assertTrue(noBlobsPanel.isVisible());
 assertThat(noBlobsLabel.getText()).isEqualTo("No files found in this directory");
}

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void testUpdateEmptyDirectory_toNonEmptyDirectory() {
 // Create an empty directory and move to it
 initEditorWithBlobs(directoryBlob);
 editorPanel.updateTableModel(DIR_NAME);
 JScrollPane bucketScrollPane = editorPanel.getBucketContentScrollPane();
 JPanel noBlobsPanel = editorPanel.getMessagePanel();
 JLabel noBlobsLabel = editorPanel.getMessageLabel();
 assertFalse(bucketScrollPane.isVisible());
 assertTrue(noBlobsPanel.isVisible());
 assertThat(noBlobsLabel.getText()).isEqualTo("No files found in this directory");
 // Add a blob to the directory and update
 setBlobs(binaryBlobInDirectory);
 editorPanel.updateTableModel(DIR_NAME);
 assertTrue(bucketScrollPane.isVisible());
 assertFalse(noBlobsPanel.isVisible());
}

相关文章

JScrollPane类方法