Codota Logo
StyleSheetReference
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
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
  • findViewById (Activity)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Reference (javax.naming)
  • JTextField (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now