當前位置: 首頁>>代碼示例>>Java>>正文


Java VerticalPanel.add方法代碼示例

本文整理匯總了Java中apidemo.util.VerticalPanel.add方法的典型用法代碼示例。如果您正苦於以下問題:Java VerticalPanel.add方法的具體用法?Java VerticalPanel.add怎麽用?Java VerticalPanel.add使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在apidemo.util.VerticalPanel的用法示例。


在下文中一共展示了VerticalPanel.add方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: OptionChainsPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
OptionChainsPanel() {
	m_symbol.setText( "IBM");
	m_secType.setSelectedItem( SecType.STK);
	m_exchange.setText( "SMART"); 
	m_currency.setText( "USD");
	m_optExch.setText( "SMART");
	
	HtmlButton button = new HtmlButton( "Go") {
		@Override protected void actionPerformed() {
			onAdd();
		}
	};
	
	VerticalPanel topPanel = new VerticalPanel();
	topPanel.add( "Symbol", m_symbol);
   	topPanel.add( "Currency", m_currency);
   	topPanel.add( "Underlying sec type", m_secType);
   	topPanel.add( "Underlying exchange", m_exchange, Box.createHorizontalStrut(20), button);
	topPanel.add( "Option exchange", m_optExch);
	topPanel.add( "Use snapshot data", m_snapshot);
	
	setLayout( new BorderLayout() );
	add( topPanel, BorderLayout.NORTH);
	add( m_tabbedPanel);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:26,代碼來源:OptionChainsPanel.java

示例2: ChainPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
ChainPanel() {
	JScrollPane scrollPuts = new JScrollPane( m_putsTable);
	scrollPuts.setBorder( new TitledBorder( "Puts"));

	JScrollPane scrollCalls = new JScrollPane( m_callsTable);
	scrollCalls.setBorder( new TitledBorder( "Calls"));

	VerticalPanel underPanel = new VerticalPanel();
          underPanel.add( "Underlying price", m_labUnderPrice);
          
	JPanel mainPanel = new JPanel();
	mainPanel.setLayout( new BoxLayout( mainPanel, BoxLayout.X_AXIS));
	mainPanel.add( scrollCalls);
          mainPanel.add( scrollPuts);
	
	setLayout( new BorderLayout() );
	add( underPanel, BorderLayout.NORTH);
	add( mainPanel);
	
	m_timer.start();
	
	ApiDemo.INSTANCE.controller().reqTopMktData( m_underContract, "", false, m_stockListener);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:24,代碼來源:OptionChainsPanel.java

示例3: PositionsMultiPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
PositionsMultiPanel() {
	
	HtmlButton requestPositionsMultiButton = new HtmlButton( "Request Positions Multi") {
		protected void actionPerformed() {
			onRequestPositionsMulti();
		}
	};
	
	VerticalPanel butPanel = new VerticalPanel();
	butPanel.add( requestPositionsMultiButton);
	setLayout( new BoxLayout( this, BoxLayout.X_AXIS) );
	m_requestPanel.enableLedgerAndNLV(false);
	add( m_requestPanel);
	add( Box.createHorizontalStrut(20));
	add( butPanel);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:17,代碼來源:AccountPositionsMultiPanel.java

示例4: AccountUpdatesMultiPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
AccountUpdatesMultiPanel() {
	
	HtmlButton requestAccountUpdatesMultiButton = new HtmlButton( "Request Account Updates Multi") {
		protected void actionPerformed() {
			onRequestAccountUpdatesMulti();
		}
	};
	
	VerticalPanel butPanel = new VerticalPanel();
	butPanel.add( requestAccountUpdatesMultiButton);
	setLayout( new BoxLayout( this, BoxLayout.X_AXIS) );
	m_requestPanel.enableLedgerAndNLV(true);
	add( m_requestPanel);
	add( Box.createHorizontalStrut(20));
	add( butPanel);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:17,代碼來源:AccountPositionsMultiPanel.java

示例5: ComboContractPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
ComboContractPanel() {
	super( m_contract);
	removeAll();

	VerticalPanel p1 = new VerticalPanel();
	p1.setAlignmentY(0);
	p1.add( "Action", m_action);
	p1.add( "Ratio", m_ratio);
	p1.add( "Symbol", m_symbol);
	p1.add( "Sec type", m_secType);
	p1.add( "Last trade date", m_lastTradeDateOrContractMonth);
	p1.add( "Strike", m_strike);

	VerticalPanel p2 = new VerticalPanel();
	p2.setAlignmentY(0);
	p2.add( "Put/call", m_right);
	p2.add( "Multiplier", m_multiplier);
	p2.add( "Exchange", m_exchange);
	p2.add( "Comp. Exch.", m_compExch);
	p2.add( "Currency", m_currency);
	p2.add( "Local symbol", m_localSymbol);

	setLayout( new BoxLayout( this, BoxLayout.X_AXIS) );
	add( p1);
	add( p2);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:27,代碼來源:ComboPanel.java

示例6: TopResultsPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
TopResultsPanel() {
	m_typeCombo.removeItemAt( 0);

	JScrollPane scroll = new JScrollPane( m_tab);

	HtmlButton reqType = new HtmlButton( "Go") {
		@Override protected void actionPerformed() {
			onReqType();
		}
	};

	VerticalPanel butPanel = new VerticalPanel();
	butPanel.add( "Market data type", m_typeCombo, reqType);
	
	setLayout( new BorderLayout() );
	add( scroll);
	add( butPanel, BorderLayout.SOUTH);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:19,代碼來源:MarketDataPanel.java

示例7: RealtimeRequestPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
RealtimeRequestPanel() { 		
	HtmlButton button = new HtmlButton( "Request real-time bars") {
		@Override protected void actionPerformed() {
			onRealTime();
		}
	};
	
   	VerticalPanel paramPanel = new VerticalPanel();
	paramPanel.add( "What to show", m_whatToShow);
	paramPanel.add( "RTH only", m_rthOnly);
	
	VerticalPanel butPanel = new VerticalPanel();
	butPanel.add( button);
	
	JPanel rightPanel = new StackPanel();
	rightPanel.add( paramPanel);
	rightPanel.add( Box.createVerticalStrut( 20));
	rightPanel.add( butPanel);
	
	setLayout( new BoxLayout( this, BoxLayout.X_AXIS) );
	add( m_contractPanel);
	add( Box.createHorizontalStrut(20) );
	add( rightPanel);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:25,代碼來源:MarketDataPanel.java

示例8: ScannerRequestPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
ScannerRequestPanel() {
	HtmlButton go = new HtmlButton( "Go") {
		@Override protected void actionPerformed() {
			onGo();
		}
	};
	
	VerticalPanel paramsPanel = new VerticalPanel();
	paramsPanel.add( "Scan code", m_scanCode);
	paramsPanel.add( "Instrument", m_instrument);
	paramsPanel.add( "Location", m_location, Box.createHorizontalStrut(10), go);
	paramsPanel.add( "Stock type", m_stockType);
	paramsPanel.add( "Num rows", m_numRows);
	
	setLayout( new BorderLayout() );
	add( paramsPanel, BorderLayout.NORTH);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:18,代碼來源:MarketDataPanel.java

示例9: FundaRequestPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
FundaRequestPanel() {
	HtmlButton but = new HtmlButton( "Query") {
		@Override protected void actionPerformed() {
			onQuery();
		}
	};
	
	VerticalPanel rightPanel = new VerticalPanel();
	rightPanel.add( "Report type", m_type);
	
	setLayout( new BoxLayout( this, BoxLayout.X_AXIS));
	add( m_contractPanel);
	add( Box.createHorizontalStrut(20));
	add( rightPanel);
	add( Box.createHorizontalStrut(10));
	add( but);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:18,代碼來源:ContractInfoPanel.java

示例10: ComboContractPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
ComboContractPanel() {
	super( m_contract);
	removeAll();

	VerticalPanel p1 = new VerticalPanel();
	p1.setAlignmentY(0);
	p1.add( "Action", m_action);
	p1.add( "Ratio", m_ratio);
	p1.add( "Symbol", m_symbol);
	p1.add( "Sec type", m_secType);
	p1.add( "Expiry", m_expiry);
	p1.add( "Strike", m_strike);

	VerticalPanel p2 = new VerticalPanel();
	p2.setAlignmentY(0);
	p2.add( "Put/call", m_right);
	p2.add( "Multiplier", m_multiplier);
	p2.add( "Exchange", m_exchange);
	p2.add( "Currency", m_currency);
	p2.add( "Local symbol", m_localSymbol);

	setLayout( new BoxLayout( this, BoxLayout.X_AXIS) );
	add( p1);
	add( p2);
}
 
開發者ID:ganshane,項目名稱:shakey,代碼行數:26,代碼來源:ComboPanel.java

示例11: RequestPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
RequestPanel() {
	VerticalPanel p = new VerticalPanel();
	p.add( "Account", m_account);
	m_modelCode.setColumns(7);
	p.add( "Model Code", m_modelCode);
	p.add( "LedgerAndNLV", m_ledgerAndNLV);
	
	setLayout( new BorderLayout() );
	add( p);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:11,代碼來源:AccountPositionsMultiPanel.java

示例12: ContractPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
ContractPanel(Contract c) {
	m_contract = c;

	if (c.secType() == SecType.None) {
		m_symbol.setText( "IBM");
		m_secType.setSelectedItem( SecType.STK);
		m_exchange.setText( "SMART");
		m_compExch.setText( "ISLAND");
		m_currency.setText( "USD");
	}
	else {
		m_symbol.setText( m_contract.symbol());
		m_secType.setSelectedItem( m_contract.secType() );
		m_lastTradeDateOrContractMonth.setText( m_contract.lastTradeDateOrContractMonth());
		m_strike.setText( "" + m_contract.strike() );
		m_right.setSelectedItem( m_contract.right() ); 
		m_multiplier.setText( m_contract.multiplier() );
		m_exchange.setText( m_contract.exchange());
		m_compExch.setText( m_contract.primaryExch() );
		m_currency.setText( m_contract.currency());
		m_localSymbol.setText( m_contract.localSymbol());
		m_tradingClass.setText( m_contract.tradingClass() );
	}
	
	VerticalPanel p = new VerticalPanel();
   	p.add( "Symbol", m_symbol);
   	p.add( "Sec type", m_secType);
   	p.add( "Last trade date or contract month", m_lastTradeDateOrContractMonth);
   	p.add( "Strike", m_strike);
   	p.add( "Put/call", m_right);
   	p.add( "Multiplier", m_multiplier);
   	p.add( "Exchange", m_exchange);
   	p.add( "Comp. Exch.", m_compExch);
   	p.add( "Currency", m_currency);
   	p.add( "Local symbol", m_localSymbol);
   	p.add( "Trading class", m_tradingClass);
   	
   	setLayout( new BorderLayout() );
   	add( p);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:41,代碼來源:ContractPanel.java

示例13: TopRequestPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
TopRequestPanel() {
	HtmlButton reqTop = new HtmlButton( "Request Top Market Data") {
		@Override protected void actionPerformed() {
			onTop();
		}
	};
	
	VerticalPanel butPanel = new VerticalPanel();
	butPanel.add( reqTop);
	
	setLayout( new BoxLayout( this, BoxLayout.X_AXIS) );
	add( m_contractPanel);
	add( Box.createHorizontalStrut(20));
	add( butPanel);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:16,代碼來源:MarketDataPanel.java

示例14: DeepRequestPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
DeepRequestPanel() {
	HtmlButton reqDeep = new HtmlButton( "Request Deep Market Data") {
		@Override protected void actionPerformed() {
			onDeep();
		}
	};
	
	VerticalPanel butPanel = new VerticalPanel();
	butPanel.add( reqDeep);
	
	setLayout( new BoxLayout( this, BoxLayout.X_AXIS) );
	add( m_contractPanel);
	add( Box.createHorizontalStrut(20));
	add( butPanel);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:16,代碼來源:MarketDataPanel.java

示例15: HistRequestPanel

import apidemo.util.VerticalPanel; //導入方法依賴的package包/類
HistRequestPanel() { 		
	m_end.setText( "20120101 12:00:00");
	m_duration.setText( "1");
	m_durationUnit.setSelectedItem( DurationUnit.WEEK);
	m_barSize.setSelectedItem( BarSize._1_hour);
	
	HtmlButton button = new HtmlButton( "Request historical data") {
		@Override protected void actionPerformed() {
			onHistorical();
		}
	};
	
   	VerticalPanel paramPanel = new VerticalPanel();
	paramPanel.add( "End", m_end);
	paramPanel.add( "Duration", m_duration);
	paramPanel.add( "Duration unit", m_durationUnit);
	paramPanel.add( "Bar size", m_barSize);
	paramPanel.add( "What to show", m_whatToShow);
	paramPanel.add( "RTH only", m_rthOnly);
	
	VerticalPanel butPanel = new VerticalPanel();
	butPanel.add( button);
	
	JPanel rightPanel = new StackPanel();
	rightPanel.add( paramPanel);
	rightPanel.add( Box.createVerticalStrut( 20));
	rightPanel.add( butPanel);
	
	setLayout( new BoxLayout( this, BoxLayout.X_AXIS) );
	add( m_contractPanel);
	add( Box.createHorizontalStrut(20) );
	add( rightPanel);
}
 
開發者ID:qerio,項目名稱:goib,代碼行數:34,代碼來源:MarketDataPanel.java


注:本文中的apidemo.util.VerticalPanel.add方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。