Tabnine Logo
StyleSheetReference
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.apache.wicket.markup.html.resources.StyleSheetReference (Showing top 5 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: org.apache.wicket/com.springsource.org.apache.wicket

  /**
   * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
   */
  protected void onComponentTag(ComponentTag tag)
  {
    // Must be attached to a style tag
    checkComponentTag(tag, "link");
    IValueMap attributes = tag.getAttributes();
    attributes.put("rel", "stylesheet");
    attributes.put("type", "text/css");
  }
}
origin: org.ops4j.pax.wicket/pax-wicket-service

  /**
   * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
   */
  @Override
  protected void onComponentTag(ComponentTag tag)
  {
    // Must be attached to a style tag
    checkComponentTag(tag, "link");
    IValueMap attributes = tag.getAttributes();
    attributes.put("rel", "stylesheet");
    attributes.put("type", "text/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

Javadoc

Link to a packaged style sheet.

Most used methods

  • <init>
    Construct.
  • checkComponentTag

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Path (java.nio.file)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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