Gdx.input.setInputProcessor(stage); font = new BitmapFont(); skin = new Skin(); buttonAtlas = new TextureAtlas(Gdx.files.internal("buttons/buttons.pack")); skin.addRegions(buttonAtlas); textButtonStyle = new TextButtonStyle(); textButtonStyle.font = font; textButtonStyle.up = skin.getDrawable("up-button"); textButtonStyle.down = skin.getDrawable("down-button"); textButtonStyle.checked = skin.getDrawable("checked-button"); button = new TextButton("Button1", textButtonStyle); stage.addActor(button);
public static boolean startsWithAnyIgnoreCase( String string, String... searchStrings ) { for ( int i = 0; i < searchStrings.length; i++ ) { String searchString = searchStrings[i]; if ( startsWithIgnoreCase( string, searchString ) ) { return true; } } return false; }
/** * @since 1.7 * @see DecorationUtils#isLink */ public boolean isLink( String href ) { return DecorationUtils.isLink( href ); }
<?php banner = new Banner(); (if banner.showTime === date()) { echo '<img src="' + banner.src + '" /> } ?>
/** * @return the default skin <code>org.apache.maven.skins:maven-default-skin:1.2</code>. */ public static Skin getDefaultSkin() { Skin skin = new Skin(); skin.setGroupId( "org.apache.maven.skins" ); skin.setArtifactId( "maven-default-skin" ); skin.setVersion( "1.2" ); return skin; }
/** * Determines the version of the given skin. If the version is not set in the * skin, the {@link Artifact#RELEASE_VERSION} is returned. * * @param skin the skin whose version is requested. * @return the version of the skin or {@link Artifact#RELEASE_VERSION} as * default. */ private static String determineVersion(final Skin skin) { String version = skin.getVersion(); if (version == null) { version = Artifact.RELEASE_VERSION; } return version; }
/** * Method addItem. * * @param menuItem */ public void addItem( MenuItem menuItem ) { getItems().add( menuItem ); } //-- void addItem( MenuItem )
Skin textSkin = new Skin(); skin.add("font", textFont);
/** * @since 1.8 * @see DecorationUtils#getCustomValue */ public String getCustomValue( String path ) { return DecorationUtils.getCustomValue( (org.codehaus.plexus.util.xml.Xpp3Dom) custom, path ); }
/** * @since 1.8 * @see DecorationUtils#getCustomChild */ public Object getCustomChild( String path ) { return DecorationUtils.getCustomChild( (org.codehaus.plexus.util.xml.Xpp3Dom) custom, path ); }
public PublishDate getPublishDate() { if ( publishDate == null ) return new PublishDate(); else return publishDate; }
public Version getVersion() { if ( version == null ) return new Version(); else return version; }
/** * Method addMenu. * * @param menu */ public void addMenu( Menu menu ) { getMenus().add( menu ); } //-- void addMenu( Menu )
@RequestMapping(value ="support",method = RequestMethod.GET) public String support(Model model){ model.addAttribute("listBannerWeb", getBannerList()); return "menu/support"; } @RequestMapping(value ="news",method = RequestMethod.GET) public String news(Model model){ model.addAttribute("listBannerWeb", getBannerList()); return "menu/news"; } private List<Banner> getBannerList() { Banner banner = new Banner(); List<Banner> listBannerWeb = bannerService.getBannerList(banner); return listBannerWeb; }
/** * @since 1.8 * @see DecorationUtils#getCustomValue */ public String getCustomValue( String path, String defaultValue ) { return DecorationUtils.getCustomValue( (org.codehaus.plexus.util.xml.Xpp3Dom) custom, path, defaultValue ); }