Netbeans FrameView

http://www.jarvana.com/jarvana/view/net/java/dev/appframework/appframework/1.03/appframework-1.03-javadoc.jar!/org/jdesktop/application/FrameView.html

 



org.jdesktop.application
Class FrameView

java.lang.Object
  extended by 
org.jdesktop.application.AbstractBean

      extended by 
org.jdesktop.application.View

          extended by 
org.jdesktop.application.FrameView


public class FrameView

   
   
    
    extends 
    
    View


   
   

 


Constructor Summary
FrameView(Application application)
           
 
Method Summary
 javax.swing.JFramegetFrame()
          Return the JFrame used to show this View
 javax.swing.JRootPanegetRootPane()
          The JRootPane for this View.
 voidsetFrame(javax.swing.JFrame frame)
          Sets the JFrame use to show this View
 
Methods inherited from class org.jdesktop.application.View
getApplication, getComponent, getContext, getMenuBar, getResourceMap, getStatusBar, getToolBar, getToolBars, setComponent, setMenuBar, setStatusBar, setToolBar, setToolBars
 
Methods inherited from class org.jdesktop.application.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameView

public FrameView
(Application
 application)

Method Detail

getFrame

public javax.swing.JFrame getFrame
()
Return the JFrame used to show this View

This method may be called at any time; the JFrame is created lazily and cached. For example:

  @Override protected void startup() {
     getFrame().setJMenuBar(createMenuBar());
     show(createMainPanel());
 }
 

 

Returns:
this application's main frame

setFrame

public void setFrame
(javax.swing.JFrame frame)
Sets the JFrame use to show this View

This method should be called from the startup method by a subclass that wants to construct and initialize the main frame itself. Most applications can rely on the fact that {code getFrame} lazily constructs the main frame and initializes the frame property.

If the main frame property was already initialized, either implicitly through a call to getFrame or by explicitly calling this method, an IllegalStateException is thrown. If frame is null, an IllegalArgumentException is thrown.

This property is bound.

 

Parameters:
frame - the new value of the frame property
See Also:
getFrame()

getRootPane

public javax.swing.JRootPane getRootPane
()
Description copied from class: View
The JRootPane for this View. All of the components for this View must be added to its rootPane. Most applications will do so by setting the View's component, menuBar, toolBar, and statusBar properties.

 

Overrides:
getRootPane in class View
Returns:
The rootPane for this View
See Also:
View.setComponent(javax.swing.JComponent), View.setMenuBar(javax.swing.JMenuBar), View.setToolBar(javax.swing.JToolBar), View.setStatusBar(javax.swing.JComponent)


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值