Cytoscape 3.1.1 API

org.cytoscape.work.swing
Interface TunableUIHelper


public interface TunableUIHelper


Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.

Module: work-swing-api

To use this in your app, include the following dependency in your POM:

<dependency>
    <groupId>org.cytoscape</groupId>
    <artifactId>work-swing-api</artifactId>
</dependency>

Method Summary
 Window getParent()
          Get the parent of the current Tunable dialog.
 void setModality(Dialog.ModalityType modality)
          Set the modality of the parent dialog.
 

Method Detail

getParent

Window getParent()
Get the parent of the current Tunable dialog. This may be used as the parent of a child dialog to avoid modality problems.

Returns:
the parent window

setModality

void setModality(Dialog.ModalityType modality)
Set the modality of the parent dialog. By default, the Swing Tunable Dialog is APPLICATION_MODAL. This may not be ideal for circumstances where it's valid for the user to be able to manipulate the state of the network or table browser while the dialog is up. This method allows tha app writer to override the default modality.

Parameters:
modality - the new modality for the dialog

Cytoscape 3.1.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.