Questions tagged [extending]
302 questions
0
votes
1 answer
Having trouble extending and implementing for the same class
So I have a class that adds nine JButtons to a container, but am having trouble implementing a way for the buttons to actually do anything. I'm trying to make a rudimentary Tic Tac Toe game the simply places an X on the first button you click, O on…
0
votes
1 answer
C# / Objective-C Extendable Application (Application that can be modified through extensions)
I'm looking into extending my C# application (and its Objective-C counterpart) to allow user created extensions to be loaded and utilized.
The idea would be that loaded extensions could either 'decorate' the output, or replace the driving mechanism…

walshie4
- 1,396
- 2
- 11
- 16
0
votes
1 answer
Loading DLL's in Python
I'm following the guide found here:
http://www.dalkescientific.com/writings/NBN/c_extensions.html
for creating C extensions to python. But when I try to run any python program after building that module, such as the first one listed or…

ss7
- 2,902
- 7
- 41
- 90
0
votes
3 answers
Extending a 3rd party angular directive and changing its template
I'm using Daniel Crisps AngularJS Range Slider https://github.com/danielcrisp/angular-rangeslider and would like to extend his directive and modify the template.
His directive looks something like this (shortened for…

spez86
- 732
- 1
- 11
- 24
0
votes
1 answer
Qt Extending my own widget
To put it simply, I want a new class that extends a custom widget that I've made, and thus have full access to it's UI.
I've tried several different methods so far based on how one would normally subclass/extend classes, but I'm somehow failing…

Yattabyte
- 1,280
- 14
- 28
0
votes
1 answer
The type parameter is X hiding the type X
I'm trying to implement this code. Rent is a subclass of Transaction.
import java.util.LinkedList;
public class TransactionList extends LinkedList { //TransactionList: warning: The type parameter Transaction is hiding the type…

nitowa
- 1,079
- 2
- 9
- 21
0
votes
5 answers
Call parent method in JavaScript class but stll have access to prototype methods inside object instance?
Is it possible to call parent method in JavaScript class but to still have access to prototype methods from parent and child class. Here is code example:
var Base = function() {
this.baseMethod = function(){
return 'baseMethod';
};
…

Caslav Sabani
- 421
- 6
- 20
0
votes
2 answers
How to extend Java class in Nashhorn JavaScript and add class member variables
I try to create an instance of a class that extends a Java class, and in that instance add some class member variables. Here's my attempt:
var ui = Java.extend(javax.swing.JPanel, {
cb : new JCheckBox("A checkbox", true),
});
However, the…

David Ekholm
- 21
- 7
0
votes
1 answer
How do I access sub-components of a list field in OpenERP 7?
If you go to the details page for a product and click on the "Procurements" tab, you'll see a list label "Suppliers".
Looking at the XML for the page, the only field I can see in this location is "seller_ids". However, the list also shows "Delivery…

eljefejb
- 297
- 3
- 12
0
votes
0 answers
Extended JTextField Memory Leak
I think I have a memory leak, although I'm not sure if I'm interpreting any of this correctly. I am running an application that queries an SQL database for information that I subsequently put into two separate JTables.
This works fine.
I created a…

Jonathon Anderson
- 1,162
- 1
- 8
- 24
0
votes
0 answers
Generic extending of generic class .net
I have a base class which is a core model for many applications. This class uses generics.
public class CoreBaseModel where TModel : CoreBaseModel, new() {
public string connectionString = "...";
//lots of member
}
For every…

user1279563
- 77
- 1
- 10
0
votes
1 answer
Extending PhotonServer for new project
I am working with PhotonServer for a Unity3d project. I started off with a simple extension of the ApplicationBase class to get it up and running. Now I would like to save myself some heavy lifting and extend the LiteLobby or even LoadBalanced…
0
votes
0 answers
Check model from VBScript in PowerDesigner and change selected objects
I need to check Physical Data Model in PowerDesigner 16.5 from VBScript and change selection of objects, which should be checked, but following test case does not work:
I press F4 and create in GUI some saved (persistent) selections named Sel1 and…

morto
- 57
- 1
- 6
0
votes
2 answers
Reason for self when extending objects (Python)
So say I am extending an object called Frame (found in 'tkinter'), as shown below,
class GraphRegion(Frame):
def __init__(self, master):
Frame.__init__(self,master)
Now, I know why 'master' is needed. Why does Frame.__init__ need…

gnasr
- 214
- 2
- 8
0
votes
1 answer
How can I know the classes that extend my base class at runtime?
During runtime, I would like to populate a drop down list with classes that have extended my base class. Currently I have an enum, and this is what I use to populate that list, but I want to add additional classes (and other people are adding…

Tizz
- 820
- 1
- 15
- 31