亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? rectanglegroupexampler.java

?? 開(kāi)源的關(guān)于SWT開(kāi)發(fā)的圖形應(yīng)用庫(kù)
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
		groupImageCombo.setValue("Woman");
		
		groupImageCombo.addSelectionListener(new SelectionListener(){
			public void widgetSelected(SelectionEvent arg0) {
				if (!groupImageCombo.getValue().equals("Browse...")){
					recreate();
					return;
				}
				
				if (groupBrowsedImage != null){
					groupBrowsedImage.dispose();
					groupBrowsedImage = null;
				}
				
				FileDialog fd = new FileDialog(Display.getCurrent().getActiveShell(),SWT.OPEN);
				String file = fd.open();
				
				if (file != null){
					
					try {
						groupBrowsedImage = new Image(Display.getCurrent(),file);
					} catch (SWTException e) {
						MessageBox mb = new MessageBox(Display.getCurrent().getActiveShell());
						mb.setText("Error");
						mb.setMessage(e.toString());
						mb.open();
					}
				}

				recreate();
			}
			public void widgetDefaultSelected(SelectionEvent arg0) {
			}});
		
		
		sg = new PGroup(this, new SimpleGroupStrategy(SWT.NONE));
		sg.setText("Styles");
		sg.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
		gd = new GridData(GridData.FILL_BOTH);
		sg.setLayoutData(gd);
		c = sg.getBody();
		c.setBackground(parent.getBackground());
		gl = new GridLayout();
		c.setLayout(gl);
		
		buttonToggleLeft = new Button(c,SWT.CHECK | SWT.FLAT);
		buttonToggleLeft.setText("RectangleGroupStrategy.TOGGLE_LEFT");
		colorStyler.add(buttonToggleLeft);
		
		buttonImageRight = new Button(c,SWT.CHECK | SWT.FLAT);
		buttonImageRight.setText("RectangleGroupStrategy.IMAGE_RIGHT");
		colorStyler.add(buttonImageRight);
		
		buttonRounded = new Button(c,SWT.CHECK | SWT.FLAT);
		buttonRounded.setText("RectangleGroupStrategy.ROUNDED");
		buttonRounded.setSelection(true);
		colorStyler.add(buttonRounded);
		
		buttonPaintImageOutOfBounds = new Button(c,SWT.CHECK |SWT.FLAT);
		buttonPaintImageOutOfBounds.setText("RectangleGroupStrategy.PAINTIMAGEOUTOFBOUNDS");
		colorStyler.add(buttonPaintImageOutOfBounds);
		buttonPaintImageOutOfBounds.setSelection(true);
		
		colorStyler.style();
		borderStyler.style();
		
		
		
		colorStyler.style();
		borderStyler.style();
		
		registerListeners(this);
	}


	
	public void recreate(){
	
		if (pGroup != null){
			pGroup.dispose();
		}
		
		int style = 0;
		if (buttonToggleLeft.getSelection())
			style = style | RectangleGroupStrategy.TOGGLE_LEFT;
		if (buttonImageRight.getSelection())
			style = style | RectangleGroupStrategy.IMAGE_RIGHT;
		if (buttonRounded.getSelection())
			style = style | RectangleGroupStrategy.ROUNDED;
		if (buttonPaintImageOutOfBounds.getSelection())
			style = style | RectangleGroupStrategy.PAINTIMAGEOUTOFBOUNDS;
		
		
		IToggleStrategy toggle = null;
		
		if (toggleCombo.getValue().equals(CHEVRONS)){
			toggle = new ChevronsToggleStrategy();
		}else if (toggleCombo.getValue().equals(TWISTE)){
			toggle = new TwisteToggleStrategy();
		}else if (toggleCombo.getValue().equals(TREENODE)){
			toggle = new TreeNodeToggleStrategy();
		}else if (toggleCombo.getValue().equals(MINMAX)){
			toggle = new MinMaxToggleStrategy();
		}else if (toggleCombo.getValue().equals(IMAGE)){
			toggle = new ImageToggleStrategy(
					GalleryImageRegistry.getImage(this.getClass(),"slider_up.GIF"),
					GalleryImageRegistry.getImage(this.getClass(),"slider_down.GIF"),
					GalleryImageRegistry.getImage(this.getClass(),"slider_up_hover.GIF"),
					GalleryImageRegistry.getImage(this.getClass(),"slider_down_hover.GIF"));
		}
		
		RectangleGroupStrategy strategy;
		
		if (toggleCombo.getValue().equals(NONE)){
			strategy = new RectangleGroupStrategy(style);
		}else{
			strategy = new RectangleGroupStrategy(toggle,style);
		}
		
		if (foreground != null)
			foreground.dispose();
		if (background != null)
			background.dispose();
		if (colorBody != null)
			colorBody.dispose();
		
		pGroup = new PGroup(exampleArea,strategy);

		if (firstCreate){
			foregroundComboStrat.setDefaultRGB(pGroup.getForeground().getRGB());
			foregroundCombo.setValue(new NamedRGB("Default",pGroup.getForeground().getRGB()));
			backgroundComboStrat.setDefaultRGB(pGroup.getBackground().getRGB());
			backgroundCombo.setValue(new NamedRGB("Default",pGroup.getBackground().getRGB()));
			bodyComboStrat.setDefaultRGB(pGroup.getBody().getBackground().getRGB());
			bodyCombo.setValue(new NamedRGB("Default",pGroup.getBody().getBackground().getRGB()));

			font = null;
		} else {
			foreground = new Color(Display.getCurrent(), ((NamedRGB)foregroundCombo.getValue()).getRGB());
			pGroup.setForeground(foreground);
			
			if (backgroundSingle.getSelection()){
				strategy.setBackground(null,null);
				
				background = new Color(Display.getCurrent(), ((NamedRGB)backgroundCombo.getValue()).getRGB());
				strategy.setBorderColor(background);
				pGroup.setBackground(background);
				
			} else {
				
			}
			
			colorBody = new Color(Display.getCurrent(), ((NamedRGB)bodyCombo.getValue()).getRGB());
			pGroup.getBody().setBackground(colorBody);
			if (font != null)
				pGroup.setFont(font);
		}
		
		if (groupImageCombo.getValue().equals("Woman")){
			pGroup.setImage(GalleryImageRegistry.getImage(this.getClass(),"woman3.png"));
		}else if (groupImageCombo.getValue().equals("Browse...")){
			if (groupBrowsedImage != null)
				pGroup.setImage(groupBrowsedImage);
		}
		
		pGroup.setText(titleText.getText());
		
		Styler styler = new Styler();
		styler.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
		
		GridData gd = new GridData(SWT.CENTER,SWT.TOP,true,false);
		gd.verticalIndent = 100;
		gd.widthHint = 200;
		pGroup.setLayoutData(gd);
		
		Composite body = pGroup.getBody();
		FillLayout fl = new FillLayout();
		fl.marginHeight = 5;
		fl.marginWidth = 5;
		body.setLayout(fl);
		Label codeText =  new Label(body,SWT.WRAP);
		codeText.setText("This is the PGroup created by the options selected to the right.\n\n" +
						 "The area this text appears in is a normal SWT composite, which can be accessed simply " +
						 "by using the getBody() method call on the PGroup.");
		
		codeText.setBackground(pGroup.getBody().getBackground());
		
		styler.add(codeText);
		
		exampleArea.layout();
		
	}
	
	public void setExampleArea(Composite area) {
		exampleArea = area;
		
		area.setLayout(new GridLayout());
		recreate();
		
		firstCreate = false;
	}
	
	public void registerListeners (Composite master){
		Control [] children = master.getChildren();
		for (int i = 0; i < children.length; i++) {
			Control child = children[i];
			if (child instanceof Composite){
				if (child instanceof Combo){
					Combo combo = (Combo) child;
					combo.addSelectionListener(new SelectionListener(){

						public void widgetSelected(SelectionEvent arg0) {
							//recreate();
						}

						public void widgetDefaultSelected(SelectionEvent arg0) {}
						
					});
				} else if (child instanceof PCombo){
					PCombo pCombo = (PCombo) child;
					pCombo.addModifyListener(new ModifyListener() {
						public void modifyText(ModifyEvent e) {
							recreate();
						}				
					});
				} else {
					registerListeners ((Composite) child);
				}
			}else if (child instanceof Button){
				Button button = (Button) child;
				button.addSelectionListener(new SelectionListener(){

					public void widgetSelected(SelectionEvent arg0) {
						recreate();
					}

					public void widgetDefaultSelected(SelectionEvent arg0) {}
					
				});
			}
		} 
	}
	

	public void dispose() {
		super.dispose();
		
		if (pGroup != null){
			pGroup.dispose();
		}
		if (foreground != null)
			foreground.dispose();
		if (background != null)
			background.dispose();
		if (colorBody != null)
			colorBody.dispose();
	}
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
三级影片在线观看欧美日韩一区二区| 一区二区三区欧美亚洲| 一本色道久久加勒比精品| 亚洲福利一区二区| 精品久久久久久久久久久久久久久| 国产91丝袜在线18| 日韩高清不卡一区二区| 亚洲视频资源在线| 久久亚洲春色中文字幕久久久| 欧美在线高清视频| 成人福利视频在线看| 七七婷婷婷婷精品国产| 亚洲一区在线看| 国产精品麻豆欧美日韩ww| 精品久久一区二区| 欧美乱妇23p| 色婷婷香蕉在线一区二区| 国产成人午夜精品影院观看视频 | 日韩av中文字幕一区二区三区| 国产精品人成在线观看免费| 精品va天堂亚洲国产| 欧美福利一区二区| 欧美色图片你懂的| 日本精品一区二区三区四区的功能| 国产成人av在线影院| 国产精品资源在线看| 久久成人免费电影| 麻豆久久久久久| 奇米精品一区二区三区在线观看一| 亚洲国产你懂的| 一区二区三区不卡视频在线观看| 亚洲天堂免费在线观看视频| 国产精品久线观看视频| 国产日产欧美精品一区二区三区| 精品国产1区二区| 精品国产91乱码一区二区三区 | 99re热这里只有精品免费视频 | 裸体在线国模精品偷拍| 日韩精品国产精品| 日韩国产欧美在线视频| 日本麻豆一区二区三区视频| 亚洲自拍偷拍av| 亚洲制服欧美中文字幕中文字幕| 亚洲精品国产无天堂网2021| 一区二区三区蜜桃网| 亚洲一区视频在线| 日韩专区在线视频| 裸体健美xxxx欧美裸体表演| 精品亚洲免费视频| 国产激情视频一区二区三区欧美| 国产成都精品91一区二区三| 成人激情图片网| 91偷拍与自偷拍精品| 欧美综合一区二区三区| 欧美日韩精品一区二区| 日韩视频一区二区在线观看| 精品国产91亚洲一区二区三区婷婷 | 国产一区二区主播在线| 国产一区激情在线| 不卡av电影在线播放| 色猫猫国产区一区二在线视频| 日本道色综合久久| 91麻豆精品久久久久蜜臀| 精品福利在线导航| 中文字幕亚洲不卡| 亚洲大片精品永久免费| 另类成人小视频在线| 国产精品香蕉一区二区三区| 99精品视频在线观看免费| 欧美日韩免费不卡视频一区二区三区| 欧美精三区欧美精三区| 久久久不卡影院| 一片黄亚洲嫩模| 九一久久久久久| 91在线高清观看| 日韩午夜激情av| 亚洲欧洲精品一区二区精品久久久 | 中文字幕中文在线不卡住| 亚洲成人av福利| 国产又粗又猛又爽又黄91精品| 成人av在线看| 日韩亚洲欧美在线观看| 亚洲欧美影音先锋| 男女激情视频一区| caoporm超碰国产精品| 欧美高清视频在线高清观看mv色露露十八 | 欧美成人一区二区三区在线观看 | 日韩免费观看高清完整版在线观看| 久久精品欧美日韩| 亚洲国产成人av| 国产精品77777| 欧美精品777| 亚洲图片欧美激情| 韩国av一区二区三区在线观看| 91久久人澡人人添人人爽欧美| 精品久久久久久最新网址| 玉米视频成人免费看| 国产一区二区成人久久免费影院 | 久久精品亚洲精品国产欧美| 亚洲一区免费视频| 成人黄色网址在线观看| 日韩三级中文字幕| 亚洲制服丝袜av| www.色综合.com| 精品久久人人做人人爰| 丝袜亚洲另类欧美| 色中色一区二区| 中文字幕在线观看一区二区| 狠狠色狠狠色合久久伊人| 欧美剧情电影在线观看完整版免费励志电影| 国产人伦精品一区二区| 美腿丝袜一区二区三区| 欧美高清视频不卡网| 一区二区在线观看av| 波多野结衣亚洲一区| 久久精品亚洲麻豆av一区二区 | 91精品国产综合久久精品麻豆| 亚洲欧美偷拍卡通变态| 国产成人亚洲精品青草天美| 欧美成人国产一区二区| 日韩avvvv在线播放| 欧美日韩精品欧美日韩精品 | 91精品国产综合久久久久久漫画| 亚洲激情成人在线| 色综合视频在线观看| 亚洲欧美综合在线精品| av日韩在线网站| 中文字幕色av一区二区三区| 风间由美一区二区三区在线观看| 2020日本不卡一区二区视频| 美女视频黄a大片欧美| 日韩午夜激情免费电影| 久久精品久久精品| 日韩欧美中文一区| 激情五月播播久久久精品| 亚洲精品一区二区三区福利| 久久国产精品区| 精品国产不卡一区二区三区| 国产一区91精品张津瑜| 精品免费一区二区三区| 国产一区在线观看视频| 久久免费美女视频| 风间由美一区二区三区在线观看 | 亚洲视频免费看| 色先锋aa成人| 亚洲成精国产精品女| 制服.丝袜.亚洲.中文.综合| 日韩国产精品大片| 337p粉嫩大胆噜噜噜噜噜91av| 国产伦精一区二区三区| 国产精品免费丝袜| 99re66热这里只有精品3直播| 樱桃国产成人精品视频| 欧美日韩国产bt| 精品一区二区三区在线播放| 国产欧美日韩在线| 91香蕉视频污在线| 视频在线在亚洲| 久久综合中文字幕| av亚洲精华国产精华精| 亚洲地区一二三色| 精品国产免费人成电影在线观看四季| 国产专区欧美精品| 日韩伦理av电影| 欧美一区永久视频免费观看| 大桥未久av一区二区三区中文| 亚洲特级片在线| 欧美精品九九99久久| 国产一区二区三区四区五区美女| 国产精品天天摸av网| 欧美视频在线一区二区三区 | 日韩电影在线一区二区| 久久久亚洲高清| 色综合网色综合| 免费成人在线观看| 国产精品美女www爽爽爽| 欧美日韩精品久久久| 国产激情一区二区三区| 亚洲欧美日韩国产综合在线| 日韩一区二区在线观看视频播放| 国产精品亚洲第一区在线暖暖韩国| 一区二区三区欧美日| 精品国产凹凸成av人网站| 91美女在线看| 精品无人码麻豆乱码1区2区| 亚洲视频免费在线| 精品成a人在线观看| 欧美日韩一级片网站| 岛国精品在线播放| 麻豆精品新av中文字幕| 亚洲乱码国产乱码精品精的特点| 亚洲精品一区二区在线观看| 在线影院国内精品| 国产成人一区二区精品非洲| 视频一区二区国产| 亚洲精品免费在线| 国产欧美日韩三级| 欧美电影免费提供在线观看| 欧美亚洲国产bt| 成人av高清在线|