public class ProjectFrameHelper extends java.lang.Object implements IdeFrameEx, AccessibleContextAccessor, DataProvider, Disposable
IdeFrame.Child
Disposable.Parent
Constructor and Description |
---|
ProjectFrameHelper(IdeFrameImpl frame,
java.awt.Image selfie) |
Modifier and Type | Method and Description |
---|---|
protected CloseProjectWindowHelper |
createCloseProjectWindowHelper() |
protected IdeRootPane |
createIdeRootPane() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
BalloonLayout |
getBalloonLayout() |
javax.swing.JComponent |
getComponent() |
javax.accessibility.AccessibleContext |
getCurrentAccessibleContext()
Same as
Accessible.getAccessibleContext() , except that the returned
AccessibleContext is null if it has not been created yet. |
java.lang.Object |
getData(java.lang.String dataId)
Returns the object corresponding to the specified data identifier.
|
IdeFrameImpl |
getFrame() |
static ProjectFrameHelper |
getFrameHelper(java.awt.Window window) |
IdeRootPaneNorthExtension |
getNorthExtension(java.lang.String key) |
Project |
getProject() |
IdeStatusBarImpl |
getStatusBar() |
static java.lang.String |
getSuperUserSuffix() |
void |
init() |
protected void |
initTitleInfoProviders(Project project) |
protected void |
installDefaultProjectStatusBarWidgets(Project project) |
boolean |
isInFullScreen() |
void |
releaseFrame() |
void |
setFileTitle(java.lang.String fileTitle,
java.nio.file.Path file) |
void |
setFrameTitle(java.lang.String text) |
void |
setProject(Project project) |
void |
setTitle(java.lang.String title)
Deprecated.
Get frame and set title directly.
|
java.awt.Rectangle |
suggestChildFrameBounds() |
Promise<?> |
toggleFullScreen(boolean state) |
static void |
updateTitle(javax.swing.JFrame frame,
java.lang.String title,
java.lang.String fileTitle,
java.nio.file.Path currentFile,
java.util.List<TitleInfoProvider> extensions) |
void |
updateView() |
public ProjectFrameHelper(IdeFrameImpl frame, java.awt.Image selfie)
public static ProjectFrameHelper getFrameHelper(java.awt.Window window)
protected IdeRootPane createIdeRootPane()
public void releaseFrame()
public void init()
public javax.swing.JComponent getComponent()
getComponent
in interface IdeFrame
protected CloseProjectWindowHelper createCloseProjectWindowHelper()
public IdeStatusBarImpl getStatusBar()
getStatusBar
in interface IdeFrame
@Deprecated public void setTitle(java.lang.String title)
public void setFrameTitle(java.lang.String text)
setFrameTitle
in interface IdeFrame
public void setFileTitle(java.lang.String fileTitle, java.nio.file.Path file)
setFileTitle
in interface IdeFrameEx
public IdeRootPaneNorthExtension getNorthExtension(java.lang.String key)
getNorthExtension
in interface IdeFrameEx
public static java.lang.String getSuperUserSuffix()
public static void updateTitle(javax.swing.JFrame frame, java.lang.String title, java.lang.String fileTitle, java.nio.file.Path currentFile, java.util.List<TitleInfoProvider> extensions)
public void updateView()
public javax.accessibility.AccessibleContext getCurrentAccessibleContext()
AccessibleContextAccessor
Accessible.getAccessibleContext()
, except that the returned
AccessibleContext
is null if it has not been created yet.getCurrentAccessibleContext
in interface AccessibleContextAccessor
public java.lang.Object getData(java.lang.String dataId)
DataProvider
PlatformDataKeys
class.getData
in interface DataProvider
dataId
- the data identifier for which the value is requested.public void setProject(Project project)
protected void initTitleInfoProviders(Project project)
protected void installDefaultProjectStatusBarWidgets(Project project)
public Project getProject()
getProject
in interface IdeFrame
public void dispose()
Disposable
dispose
in interface Disposable
public IdeFrameImpl getFrame()
public java.awt.Rectangle suggestChildFrameBounds()
suggestChildFrameBounds
in interface IdeFrame
public final BalloonLayout getBalloonLayout()
getBalloonLayout
in interface IdeFrame
public boolean isInFullScreen()
isInFullScreen
in interface IdeFrame
public Promise<?> toggleFullScreen(boolean state)
toggleFullScreen
in interface IdeFrameEx