Tabnine Logo
StyleSheetReference.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.wicket.markup.html.resources.StyleSheetReference
constructor

Best Java code snippets using org.apache.wicket.markup.html.resources.StyleSheetReference.<init> (Showing top 3 results out of 315)

origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Can be overridden by clients for custom style sheet
 * 
 * @return the style sheet reference
 */
protected StyleSheetReference getStyleSheet()
{
  return new StyleSheetReference("paletteCSS", getClass(), "palette.css");
}
origin: eu.cedarsoft.wicket/basic-components

 public NavigationComponent( @NotNull @NonNls String id, @NotNull final LinksDataView dataView, @Nullable ResourceReference styleSheetReference ) {
  super( id );

  if ( styleSheetReference == null ) {
   add( new EmptyPanel( WicketConstants.ID_STYLE_SHEET ) );
  } else {
   add( new StyleSheetReference( WicketConstants.ID_STYLE_SHEET, styleSheetReference ) );
  }

  WebMarkupContainer container = new WebMarkupContainer( ID_NAVIGATION_UL );
  add( container );
  container.add( dataView );
 }
}
origin: com.cedarsoft.wicket/basic-components

 public NavigationComponent( @Nonnull @NonNls String id, @Nonnull final LinksDataView<?> dataView, @Nullable ResourceReference styleSheetReference ) {
  super( id );

  if ( styleSheetReference == null ) {
   add( new EmptyPanel( WicketConstants.ID_STYLE_SHEET ) );
  } else {
   add( new StyleSheetReference( WicketConstants.ID_STYLE_SHEET, styleSheetReference ) );
  }

  WebMarkupContainer container = new WebMarkupContainer( NAVIGATION_UL );
  add( container );
  container.add( dataView );

  //Adds the big reference
  container.add( new AbstractBehavior() {
   @Override
   public void onComponentTag( @Nonnull Component component, @Nonnull ComponentTag tag ) {
    if ( dataView.getRowCount() > 6 ) {
     tag.put( "id", "big" );
    } else {
     tag.put( "id", "small" );
    }
   }
  } );
 }
}
org.apache.wicket.markup.html.resourcesStyleSheetReference<init>

Javadoc

Construct.

Popular methods of StyleSheetReference

  • checkComponentTag

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Permission (java.security)
    Legacy security code; do not use.
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now