Questions tagged [extend]

Cause a unit of code (a class in POO, a style class in CSS ...) to cover a wider area.

Cause a unit of code (a class in POO, a style class in CSS ...) to cover a wider area.

1544 questions
0
votes
2 answers

extending Java's Linked List for personal use

So I need a linked list to store multiple variables, so I want to use my hand-made Linked List ADT, but also want Java's Linked List's Comparator Sort from collections.sort(); So I tried and edited my code as following: public class HLinkedList…
Sukwoo
  • 205
  • 2
  • 5
  • 9
0
votes
3 answers

Can JQuery $.extend be used with indexing?

I am trying to extend an Object of the following structure (with JQuery in Coffeescript): objectThatIsAList = { 'List Item' : callback :=> return "Some value" 'Another item' : callback :=> return "Another…
arvidkahl
  • 852
  • 8
  • 15
0
votes
1 answer

Access $.fn.extend methods from separate file

Need to access a method from another page. Seems like there should be something like $("#selectedClip").setValue(4,4); (function($) { $.fn.extend({ spinit: function(options) { var settings = $.extend({ min: 0, max: 100, initValue: 0,…
Brayden Hancock
  • 786
  • 1
  • 6
  • 22
0
votes
1 answer

Java Extends tag giving "symbol not found" error

I currently have a Java program with a functioning Java class. I've created instances of that class manipulated them and printed them without any issues, however when I try to extend the class from the main method I get a symbol not found…
leigero
  • 3,233
  • 12
  • 42
  • 63
0
votes
1 answer

@staticmethod when extending with c(++)

To create a class usable in Python is pretty straight-forward: http://code.activestate.com/recipes/54352-defining-python-class-methods-in-c/ But how to make methods static?
Nicu Tofan
  • 1,052
  • 14
  • 34
0
votes
2 answers

loop through two list and extend one list by a value in the other list

I want to extend a list in lists by the value of another list: list1 = [['a', 'a'], ['b','b'], ['c','c']] list2 = [1,2,3] I would like this: list3 = [['a','a',1], ['b','b',2], ['c','c',3]] Thank you for your help.
hylaeus
  • 245
  • 2
  • 3
  • 10
0
votes
3 answers

How to include reference to original function when doing an override with jQuery.extend()

So, I'm trying to override a function but include it's original methods with the jQuery.extend() method. var origFunction = $.fn.pluginFunction; $.fn.extend({ pluginFunction: function() { // `origFunction` is…
Brian
  • 3,920
  • 12
  • 55
  • 100
0
votes
1 answer

Overriding ListView property in Monodroid

I'm currently programming in Monodroid and I'm having an issue with the extension of a Listview. I currently have ListView extended like this: public class TTListView : ListView { private Context mContext; private bool wrapAdapter; …
Leon Lucardie
  • 9,541
  • 4
  • 50
  • 70
0
votes
1 answer

jade extend a page generated without a layout

My Problem: I cannot get my jade blocks to extend My Setup: Running the latest NodeJS with Express 3 I'm loading some HTML via Ajax using a Post method app.post "/utilities", (req, res) -> res.render "utilities", layout:false In Utilities I have…
Marius Miliunas
  • 1,023
  • 18
  • 34
0
votes
3 answers

How does $.extend work?

If I try it like $.extend(function_arguments, defaults_arguments) not all of the default_arguments get overwritten. For example if one of them is a function (this), it will remain in the object if the one from the function_arguments is of different…
Alex
  • 66,732
  • 177
  • 439
  • 641
0
votes
1 answer

Super constructor in subclass signature?

In the example on this page: http://www.scala-lang.org/node/125 class Point(xc: Int, yc: Int) { val x: Int = xc val y: Int = yc def move(dx: Int, dy: Int): Point = new Point(x + dx, y + dy) } class ColorPoint(u: Int, v: Int, c: String)…
taz
  • 1,506
  • 3
  • 15
  • 26
0
votes
1 answer

Java, create line object extending JComponent

I'm programming a java applet. In this applet I need to draw on an image some markers (as a red circle) and some lines. I have succesfully implemented the markes, as an extension of JComponent, and I also put on this some mouse listeners. I'm having…
Marco Fedele
  • 2,090
  • 2
  • 25
  • 45
0
votes
0 answers

Extending Java with jar that can be used from an Applet

I want to extend Java with Classes I made myself so that they can be used from Java Applets. I have tried dropping JAR files in the lib and lib/ext folder but they still ain't globally visible. EDIT: Putting the file in lib/ext works (oops) but not…
user1657170
  • 318
  • 2
  • 7
0
votes
2 answers

Extending DataGrid

I would like to extend the ASP.NET DataGrid web control to add lots of additional features but most important of all, I would like to make the body of the grid scrollable. I have the HTML worked out but overriding the rendering of the control is…
NeilC
  • 1,380
  • 1
  • 17
  • 36
0
votes
4 answers

Extending a (native) class in Python

I'm trying to add a new method to the Image class from Python Imaging Library. I want to have a new class called DilateImage which acts exactly as the original Image class, except it also includes a dilate() function which modifies the class…
runeks
  • 1,745
  • 2
  • 17
  • 26